public void AddObjects(params TKey [] objects) { if (objects == null) { throw new ArgumentNullException(nameof(objects)); } for (int i = 0; i < objects.Length; i++) { if (objects [i] == null) { throw new ArgumentNullException(nameof(objects) + "[" + i.ToString() + "]"); } } using (var array = NSArray.From <TKey> (objects)) _AddObjects(array.Handle); }
public TValue[] ObjectsForKeys(TKey[] keys, TValue marker) { if (keys == null) { throw new ArgumentNullException(nameof(keys)); } if (marker == null) { throw new ArgumentNullException(nameof(marker)); } if (keys.Length == 0) { return new TValue [] {} } ; return(NSArray.ArrayFromHandle <TValue> (_ObjectsForKeys(NSArray.From <TKey> (keys).Handle, marker.Handle))); }