T
titan nyquist
Can I step through a struct using foreach? I want a method that steps
through a struct, and prints out the name/value of each member. Can
it be done?
The error I get when trying this is: "foreach statement cannot
operate on variables of type '...' because '...' does not contain a
public definition for 'GetEnumerator'. And it points me to
http://msdn2.microsoft.com/en-us/library/t51esaeb(vs.80).aspx
I guess this is the answer, but it is over my head at this moment.
through a struct, and prints out the name/value of each member. Can
it be done?
The error I get when trying this is: "foreach statement cannot
operate on variables of type '...' because '...' does not contain a
public definition for 'GetEnumerator'. And it points me to
http://msdn2.microsoft.com/en-us/library/t51esaeb(vs.80).aspx
I guess this is the answer, but it is over my head at this moment.