public WorldDelegateWrapper(RC.WorldDelegate managed) { this.managed = managed; if (managed != null) { NativeDelegate = new WorldDelegateNative(NativeCallback); } }
public static RC.WorldDelegate GetManagedDelegate(WorldDelegateNative native) { if (native == null) { return(null); } WorldDelegateWrapper wrapper = (WorldDelegateWrapper)native.Target; if (wrapper == null) { return(null); } return(wrapper.managed); }