I\'ve got a class with a number of attributes, and I need to find a way to get a count of the number of attributes it has. I want to do this because the class reads a CSV file,
Using Reflection you have a GetAttributes() method that will return an array of object (the attributes).
So if you have an instance of the object then get the type using obj.GetType() and then you can use the GetAttributes() method.