public partial class Foo
{
public struct ContainerOne
{
public const long Sub1 = 1;
public const long Sub2 = 2;
}
public struct ContainerTwo
{
public const long Sub3 = 3;
public const long Sub4 = 4;
}
}
Is there any way to make a nested foreach that gets each container name, with an inne loop that gets each property name + value?
Hope you get the idea, otherwise ill elaborate, thanks!
Yes, like this:
Live example: http://rextester.com/PNV12550