예제 #1
0
 public PackageAndSpecDelegateWrapper(RC.PackageAndSpecDelegate managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new PackageAndSpecDelegateNative(NativeCallback);
     }
 }
예제 #2
0
        public static RC.PackageAndSpecDelegate GetManagedDelegate(PackageAndSpecDelegateNative native)
        {
            if (native == null)
            {
                return(null);
            }
            PackageAndSpecDelegateWrapper wrapper = (PackageAndSpecDelegateWrapper)native.Target;

            if (wrapper == null)
            {
                return(null);
            }
            return(wrapper.managed);
        }