public CMTimebase(CMTimebase masterTimebase) { if (masterTimebase == null) { throw new ArgumentNullException("masterTimebase"); } var error = CMTimebaseCreateWithMasterTimebase(IntPtr.Zero, masterTimebase.Handle, out handle); if (error != CMTimebaseError.None) { throw new ArgumentException(error.ToString()); } CFObject.CFRetain(Handle); }
public CMTimebase(CMTimebase masterTimebase) { if (masterTimebase == null) throw new ArgumentNullException ("masterTimebase"); var error = CMTimebaseCreateWithMasterTimebase (IntPtr.Zero, masterTimebase.Handle, out handle); if (error != CMTimebaseError.None) throw new ArgumentException (error.ToString ()); CFObject.CFRetain (Handle); }