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; }
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); }