public PackageAndDepDelegateWrapper(RC.PackageAndDepDelegate managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new PackageAndDepDelegateNative(NativeCallback);
     }
 }
        public static RC.PackageAndDepDelegate GetManagedDelegate(PackageAndDepDelegateNative native)
        {
            if (native == null)
            {
                return(null);
            }
            PackageAndDepDelegateWrapper wrapper = (PackageAndDepDelegateWrapper)native.Target;

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