GetEnumerator() public method

public GetEnumerator ( ) : IDictionaryEnumerator
return IDictionaryEnumerator
 public static DynamicFieldInfo[] GetHashTableFields(SimpleHashtable h)
 {
     DynamicFieldInfo[] infoArray = null;
     try
     {
         int count = h.count;
         infoArray = new DynamicFieldInfo[count];
         IDictionaryEnumerator enumerator = h.GetEnumerator();
         for (int i = 0; (i < count) && enumerator.MoveNext(); i++)
         {
             infoArray[i] = new DynamicFieldInfo((string)enumerator.Key, enumerator.Value);
         }
     }
     catch
     {
         infoArray = new DynamicFieldInfo[0];
     }
     return(infoArray);
 }
 public static DynamicFieldInfo[] GetHashTableFields(SimpleHashtable h)
 {
     DynamicFieldInfo[] infoArray = null;
     try
     {
         int count = h.count;
         infoArray = new DynamicFieldInfo[count];
         IDictionaryEnumerator enumerator = h.GetEnumerator();
         for (int i = 0; (i < count) && enumerator.MoveNext(); i++)
         {
             infoArray[i] = new DynamicFieldInfo((string) enumerator.Key, enumerator.Value);
         }
     }
     catch
     {
         infoArray = new DynamicFieldInfo[0];
     }
     return infoArray;
 }