public static Free ( |
||
aPtr | IntPtr returned by native code which is documented as requiring explicit destruction | |
return | void |
public static void Free(IntPtr aPtr)
{
OhNetFree(aPtr);
}
/// <summary> /// Get the full name for a given network interface. /// </summary> /// <returns>String in the form a.b.c.d (name).</returns> public string FullName() { IntPtr cStr = OhNetNetworkAdapterFullName(iHandle); string name = InteropUtils.PtrToStringUtf8(cStr); Library.Free(cStr); return(name); }