I have a class,
public static class Permissions
{
public const string AccessRightFormAdmin = "TEST1";
public const string AccessRightExperimental = "TEST2";
}
I want to have List<string> myConsts = new List<string>; such that, myConsts contains all the string constants from the Permissions class. How can I achieve this in C#?