CVB.Net 14.0
Native Class Reference

Helper for P/Invoke error handling. More...

Static Public Member Functions

static TOut Call< TOut > (INativeHandle obj, NativeOutFunc< TOut > fn)
 Call a native function fn without one returned value. More...
 
static void Call (INativeHandle obj, Func< IntPtr, int > fn)
 Call a native function fn without any returned value. More...
 
static IPAddress ToIPAddress (this int ip)
 Creates an IPAddress from the given int ip . More...
 
static int ToInt32 (this IPAddress address)
 Converts the given address into an int. More...
 

Detailed Description

Helper for P/Invoke error handling.

Member Function Documentation

◆ Call()

static void Call ( INativeHandle  obj,
Func< IntPtr, int >  fn 
)
static

Call a native function fn without any returned value.

Parameters
objObject to call fn on.
fnFunction to call.

◆ Call< TOut >()

static TOut Call< TOut > ( INativeHandle  obj,
NativeOutFunc< TOut >  fn 
)
static

Call a native function fn without one returned value.

Parameters
objObject to call fn on.
fnFunction to call.

◆ ToInt32()

static int ToInt32 ( this IPAddress  address)
static

Converts the given address into an int.

Parameters
addressIP version 4 address to convert.
Returns
int representation of address .

◆ ToIPAddress()

static IPAddress ToIPAddress ( this int  ip)
static

Creates an IPAddress from the given int ip .

Parameters
ipIPv4 address as an int.
Returns
New IPAddress.