internal static class Items
{
public static string ItemOne => "test";
public static string ItemTwo => "test two";
public static string ItemThree => "test three";
public static List<string> GetItemsValuesList()
{
// some code that can gather the values of all the member variables
return new List<string>();
}
}
I have already seen some other questions on SO but in my case, I am having a Static class. How can I return a list containing all the values of all the member variables by the method GetItemsValuesList()
?