Accessing Static Methods on a Generic class in c#
- by mrlane
Hello, I have the following situation in code, which I suspect may be a bit dodgey:
I have a class:
abstract class DataAccessBase<T> : IDataAccess where T : AnotherAbstractClass
This class DataAccessBase also has a static factory method which creates instances of derived classes of itself using an enum value in a which statement to decide…