public static NatTypeDetectionServer GetInstance() { global::System.IntPtr cPtr = RakNetPINVOKE.NatTypeDetectionServer_GetInstance(); NatTypeDetectionServer ret = (cPtr == global::System.IntPtr.Zero) ? null : new NatTypeDetectionServer(cPtr, false); return(ret); }
public static void DestroyInstance(NatTypeDetectionServer i) { RakNetPINVOKE.NatTypeDetectionServer_DestroyInstance(NatTypeDetectionServer.getCPtr(i)); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NatTypeDetectionServer obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }