Problem with IEnumerable in Reflection <blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/5949688/how-to-iterate-the-list-in-reflection">How to iterate the List in Reflection</a><br> <a href="http://stackoverflow.com/questions/5950222/problem-with-ienumerable-in-reflection">Problem with IEnumerable in Reflection</a> </p> </blockquote> <p>Hi,</p> <p>I am facing a problem while Iterating the List in reflection.</p> <pre><code>var item = property.GetValue(obj,null); // We dont know the type of obj as it is in Reflection. foreach(var value in (item as IEnumerable)) { //Do stuff } </code></pre> <p>If i do this i will get the error like </p> <p>Using the generic type 'System.Collections.Generic.IEnumerable' requires 1 type arguments</p> <p>Please help me.</p>