KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
FieldInfo[] fields = typeof(MyDictionary).GetFields(); MyDictionary is a static class, all fields are string arrays. How to get get the Length value of each array and then itearate through all elements ? I tried the cast like: field as Array but it causes an error Cannot convert type 'System.Reflection.FieldInfo' to 'System.Array' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion
Tags (comma-separated)
Save Edits
Cancel