public static IEnumerator ForEachInObj(object obj)
        {
            IEnumerable enumerable;

            if (obj == null)
            {
                throw ExceptionUtils.VbMakeException(0x5b);
            }
            try
            {
                enumerable = (IEnumerable)obj;
            }
            catch (StackOverflowException exception)
            {
                throw exception;
            }
            catch (OutOfMemoryException exception2)
            {
                throw exception2;
            }
            catch (ThreadAbortException exception3)
            {
                throw exception3;
            }
            catch (Exception)
            {
                throw ExceptionUtils.MakeException1(100, obj.GetType().ToString());
            }
            IEnumerator enumerator = enumerable.GetEnumerator();

            if (enumerator == null)
            {
                throw ExceptionUtils.MakeException1(100, obj.GetType().ToString());
            }
            return(enumerator);
        }