public ResolverContextDelegateWrapper(RC.ResolverContextDelegate managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new ResolverContextDelegateNative(NativeCallback);
     }
 }
        public static RC.ResolverContextDelegate GetManagedDelegate(ResolverContextDelegateNative native)
        {
            if (native == null)
            {
                return(null);
            }
            ResolverContextDelegateWrapper wrapper = (ResolverContextDelegateWrapper)native.Target;

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