示例#1
0
 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;
		}
示例#3
0
        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);
		}