public WorldSyncDelegateWrapper(RC.WorldSyncDelegate managed) { this.managed = managed; if (managed != null) { NativeDelegate = new WorldSyncDelegateNative(NativeCallback); } }
public static RC.WorldSyncDelegate GetManagedDelegate (WorldSyncDelegateNative native) { if (native == null) return null; WorldSyncDelegateWrapper wrapper = (WorldSyncDelegateWrapper) native.Target; if (wrapper == null) return null; return wrapper.managed; }
public static RC.WorldSyncDelegate GetManagedDelegate(WorldSyncDelegateNative native) { if (native == null) { return(null); } WorldSyncDelegateWrapper wrapper = (WorldSyncDelegateWrapper)native.Target; if (wrapper == null) { return(null); } return(wrapper.managed); }
public WorldSyncDelegateWrapper (RC.WorldSyncDelegate managed) { this.managed = managed; if (managed != null) NativeDelegate = new WorldSyncDelegateNative (NativeCallback); }