internal static IEnumerable <string> AsEnumerable(this NameObjectCollectionBase.KeysCollection collection)
 {
     for (var i = 0; i < collection.Count; i++)
     {
         yield return(collection.Get(i));
     }
 }
Exemple #2
0
 public void CopyTo(Array array, int index)
 {
     NameObjectCollectionBase.KeysCollection all = Keys;
     for (int i = 0; i < all.Count; i++)
     {
         array.SetValue(all.Get(i), i + index);
     }
 }
Exemple #3
0
 public void CopyTo(Array array, int index)
 {
     if (sessionItems == null)
     {
         return;
     }
     NameObjectCollectionBase.KeysCollection all = sessionItems.Keys;
     for (int i = 0; i < all.Count; i++)
     {
         array.SetValue(all.Get(i), i + index);
     }
 }
Exemple #4
0
        public static bool Contains(this NameObjectCollectionBase.KeysCollection keys, string key)
        {
            for (int i = 0; i < keys.Count; ++i)
            {
                var item = keys.Get(i);
                if (item == key)
                {
                    return(true);
                }
            }

            return(false);
        }