public bool Remove(NSScriptCommandArgumentDescription arg) { if (arg == null) { throw new ArgumentNullException("arg"); } using (var nsName = new NSString(arg.Name)) { return(Arguments?.Remove(nsName) ?? false); } }
public void Add(NSScriptCommandArgumentDescription arg) { if (arg == null) { throw new ArgumentNullException("arg"); } if (Arguments == null) { Arguments = new NSMutableDictionary(); } using (var nsName = new NSString(arg.Name)) { Arguments.Add(nsName, arg.Dictionary); } }