public CTRunDelegate(CTRunDelegateOperations operations) { if (operations == null) throw ConstructorError.ArgumentNull (this, "operations"); handle = CTRunDelegateCreate (operations.GetCallbacks (), GCHandle.ToIntPtr (operations.handle)); if (handle == IntPtr.Zero) throw ConstructorError.Unknown (this); }
public CTRunDelegate(CTRunDelegateOperations operations) { if (operations == null) { throw ConstructorError.ArgumentNull(this, "operations"); } handle = CTRunDelegateCreate(operations.GetCallbacks(), GCHandle.ToIntPtr(operations.handle)); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } }