コード例 #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;
     }
 }
コード例 #2
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);
     }
 }
コード例 #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);
     }
 }
コード例 #4
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);
     }
 }