R
Rick
I would like to be able to access the members of a struct (or class)
based on their order within the struct. For example, say I had a
struct something like:
public struct PhoneTypes
{
public string work;
public string home;
public string mobile;
}
Is there some way I can directly access the first element (work), then
the next (home), etc, without using the specific element names?
Thanks!
~ Rick
based on their order within the struct. For example, say I had a
struct something like:
public struct PhoneTypes
{
public string work;
public string home;
public string mobile;
}
Is there some way I can directly access the first element (work), then
the next (home), etc, without using the specific element names?
Thanks!
~ Rick