public WorldRemoveLockDelegateWrapper(RC.WorldRemoveLockDelegate managed) { this.managed = managed; if (managed != null) { NativeDelegate = new WorldRemoveLockDelegateNative(NativeCallback); } }
public static RC.WorldRemoveLockDelegate GetManagedDelegate(WorldRemoveLockDelegateNative native) { if (native == null) { return(null); } WorldRemoveLockDelegateWrapper wrapper = (WorldRemoveLockDelegateWrapper)native.Target; if (wrapper == null) { return(null); } return(wrapper.managed); }