public static Router2 GetInstance() { IntPtr cPtr = SLikeNetPINVOKE.Router2_GetInstance(); Router2 ret = (cPtr == IntPtr.Zero) ? null : new Router2(cPtr, false); return(ret); }
public static void DestroyInstance(Router2 i) { SLikeNetPINVOKE.Router2_DestroyInstance(Router2.getCPtr(i)); }
internal static HandleRef getCPtr(Router2 obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }