public PackageAndSpecDelegateWrapper(RC.PackageAndSpecDelegate managed) { this.managed = managed; if (managed != null) { NativeDelegate = new PackageAndSpecDelegateNative(NativeCallback); } }
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); }