Quantcast
Channel: User Sinatr - Stack Overflow
Viewing all articles
Browse latest Browse all 609

Comment by Sinatr on What is the correct way to set up interfaceimplementation and type compatibility?

$
0
0
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).

Viewing all articles
Browse latest Browse all 609

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>