示例#1
0
 public ShoreNetMarker(ShoreNetObject obj, String key)
     : this(obj, ShoreCObjectGetMarkerOf(obj.ptr, key))
 {
     if (ptr == IntPtr.Zero)
     {
         throw new KeyNotFoundException();
     }
 }
示例#2
0
 public ShoreNetObject(ShoreNetObject shObject, UInt32 i)
     : this(shObject.parent, ShoreCObjectGetPart(shObject.ptr, i))
 {
     if (ptr == IntPtr.Zero)
     {
         throw new NullReferenceException();
     }
 }
示例#3
0
 public ShoreNetMarker(ShoreNetObject obj, UInt32 i)
     : this(obj, ShoreCObjectGetMarker(obj.ptr, i))
 {
     if (ptr == IntPtr.Zero)
     {
         throw new IndexOutOfRangeException();
     }
 }
示例#4
0
 public ShoreNetObject(ShoreNetObject shObject, String key)
     : this(shObject.parent, ShoreCObjectGetPartOf(shObject.ptr, key))
 {
     if (ptr == IntPtr.Zero)
     {
         throw new NullReferenceException();
     }
 }
示例#5
0
 public ShoreNetRegion(ShoreNetObject shObj)
 {
     parent = shObj;
     ptr    = ShoreCObjectGetRegion(shObj.ptr);
     if (ptr == IntPtr.Zero)
     {
         throw new NullReferenceException();
     }
 }
示例#6
0
 private ShoreNetMarker(ShoreNetObject parent, IntPtr ptr)
 {
     this.parent = parent;
     this.ptr    = ptr;
 }
示例#7
0
 public ShoreNetMarker(ShoreNetObject obj, String key)
     : this(obj, ShoreCObjectGetMarkerOf(obj.ptr, key))
 {
     if (ptr == IntPtr.Zero)
         throw new KeyNotFoundException();
 }
示例#8
0
 public ShoreNetMarker(ShoreNetObject obj, UInt32 i)
     : this(obj, ShoreCObjectGetMarker(obj.ptr, i))
 {
     if (ptr == IntPtr.Zero)
         throw new IndexOutOfRangeException();
 }
示例#9
0
 private ShoreNetMarker(ShoreNetObject parent, IntPtr ptr)
 {
     this.parent = parent;
     this.ptr = ptr;
 }
示例#10
0
 public ShoreNetObject(ShoreNetObject shObject, String key)
     : this(shObject.parent, ShoreCObjectGetPartOf(shObject.ptr, key))
 {
     if (ptr == IntPtr.Zero)
         throw new NullReferenceException();
 }
示例#11
0
 public ShoreNetObject(ShoreNetObject shObject, UInt32 i)
     : this(shObject.parent, ShoreCObjectGetPart(shObject.ptr, i))
 {
     if (ptr == IntPtr.Zero)
         throw new NullReferenceException();
 }
示例#12
0
 public ShoreNetRegion(ShoreNetObject shObj)
 {
     parent = shObj;
     ptr = ShoreCObjectGetRegion(shObj.ptr);
     if (ptr == IntPtr.Zero)
         throw new NullReferenceException();
 }