Exemple #1
0
 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 bool Remove(NSScriptCommandArgumentDescription arg)
 {
     if (arg == null)
     {
         throw new ArgumentNullException("arg");
     }
     using (var nsName = new NSString(arg.Name)) {
         return(Arguments?.Remove(nsName) ?? false);
     }
 }
Exemple #3
0
 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);
     }
 }
 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);
     }
 }