System.Collections.IEnumerator: type used in using a statement must be convertible to System.IDisposable

Locked System.Collections.IEnumerator: type used in using a statement must be convertible to System.IDisposable

  • Thursday, January 27, 2011 7:33 AM
     
     

    Dear all,

    I have trouble with this.

    using (IEnumerator enumerator = table.Rows.GetEnumerator())
                {
                   //Excute code here  

                }

    Please help me,