public static NSIndexSet FromArray(nuint[] items)
        {
            if (items == null)
            {
                return(new NSIndexSet());
            }

            var indexSet = new NSMutableIndexSet();

            foreach (var index in items)
            {
                indexSet.Add(index);
            }
            return(indexSet);
        }
        public static NSIndexSet FromArray(int[] items)
        {
            if (items == null)
            {
                return(new NSIndexSet());
            }

            var indexSet = new NSMutableIndexSet();

            foreach (var index in items)
            {
                if (index < 0)
                {
                    throw new ArgumentException("One of the items values is negative");
                }
                indexSet.Add((nuint)(uint)index);
            }
            return(indexSet);
        }