Example #1
0
 protected override void Dispose(bool disposing)
 {
     InstanceCache.Remove(NativeInstance);
     if (OwnsNativeInstance)
     {
         Urho3D_StringVector_destructor(NativeInstance);
     }
 }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     InstanceCache.Remove(NativeInstance);
     if (OwnsNativeInstance)
     {
         Urho3D_HashMap_StringHash_Variant_destructor(NativeInstance);
     }
 }
Example #3
0
 public override void Dispose()
 {
     if (Interlocked.Increment(ref disposed_) == 1)
     {
         InstanceCache.Remove(instance_);
         Urho3D_StringVector_destructor(instance_);
     }
     instance_ = IntPtr.Zero;
 }
Example #4
0
 public override void Dispose()
 {
     if (Interlocked.Increment(ref DisposedCounter) == 1)
     {
         InstanceCache.Remove(NativeInstance);
         if (OwnsNativeInstance)
         {
             Urho3D_StringVector_destructor(NativeInstance);
         }
     }
     NativeInstance = IntPtr.Zero;
 }