예제 #1
0
 public static IntPtr ObjectBaseToPtrNotNull(InternalObjectBase obj)
 {
     return(obj?.Pointer ?? throw new NullReferenceException());
 }
예제 #2
0
 public static IntPtr ObjectBaseToPtr(InternalObjectBase obj)
 {
     return(obj?.Pointer ?? IntPtr.Zero);
 }