Exemple #1
0
 public MarkedPackageDelegateWrapper(RC.MarkedPackageDelegate managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new MarkedPackageDelegateNative(NativeCallback);
     }
 }
		public static RC.MarkedPackageDelegate GetManagedDelegate (MarkedPackageDelegateNative native)
		{
			if (native == null)
				return null;
			MarkedPackageDelegateWrapper wrapper = (MarkedPackageDelegateWrapper) native.Target;
			if (wrapper == null)
				return null;
			return wrapper.managed;
		}
Exemple #3
0
        public static RC.MarkedPackageDelegate GetManagedDelegate(MarkedPackageDelegateNative native)
        {
            if (native == null)
            {
                return(null);
            }
            MarkedPackageDelegateWrapper wrapper = (MarkedPackageDelegateWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }
		public MarkedPackageDelegateWrapper (RC.MarkedPackageDelegate managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new MarkedPackageDelegateNative (NativeCallback);
		}