예제 #1
0
        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);
            }
        }
예제 #2
0
		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);
		}