I need to use a static class to hold some simple values during runtime:
public static class Globals { public static string UserName { get; set; } ...more properties } I now have need to store a List of objects - typed according to classes I have defined. This List will be re-used for different Object types, and so I thought to define it as Generic.
This is where I am stuck: how do I define a property inside a static class that will be containing different types of Lists at different times in the applications execution?
Needs to be something like :
public List<T> Results {get; set;}