Ejemplo n.º 1
0
 public void CopyTo(KeyValuePair <object, object>[] array, int arrayIndex)
 {
     lock (this) {
         Dictionary <object, object> .Enumerator ie = data.GetEnumerator();
         while (ie.MoveNext())
         {
             array[arrayIndex++] = new KeyValuePair <object, object>(DictOps.ObjToNull(ie.Current.Key), ie.Current.Value);
         }
     }
 }
Ejemplo n.º 2
0
        public static List Keys(IDictionary <object, object> self)
        {
            List l = List.Make(self.Keys);

            for (int i = 0; i < l.Count; i++)
            {
                if (l[i] == nullObject)
                {
                    l[i] = DictOps.ObjToNull(l[i]);
                    break;
                }
            }
            return(l);
        }