I need to use a static class to store some simple values ββat runtime:
public static class Globals { public static string UserName { get; set; } ...more properties }
Now I need to save the list of objects introduced according to the classes I defined. This list will be reused for different types of objects, so I decided to define it as Generic.
Here's where I got stuck: how to define a property inside a static class that will contain different types of lists at different runtimes of applications?
You need to be something like:
public List<T> Results {get; set;}
source share