XY problem, don't use generic interface as base class for any
T
, that won't work. Nor it's clear why dictionary, the database would be more correct approach here. If you want dictionary, use Dictionary<string, object>
and cast (generic extension method to ensure strong typing should suffice).