Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Generic class with default value

$
0
0
I am converting a base class to generics, because i need the id property to be a type of guid for some classes and int for others. I have a fairly large code base that derives from the existing base class. I would like to do minimal changes to existing classes. Is there a way i can default the generic type to Guid so that consumers don't have to specify?

Anonymous


Viewing all articles
Browse latest Browse all 31927

Trending Articles



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