示例#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);
 }