By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

How to know the type of some object implements IComparable<T>?

P: n/a
then find out what is T?

Aug 19 '07 #1
Share this Question
Share on Google+
2 Replies

P: n/a
T is whatever you make T become. T becomes whatever you instantiate
the generic to be.

Hence the term 'generics'.

Aug 20 '07 #2

P: n/a

"Savior" <ia*******@gmail.comwrote in message
then find out what is T?


on each interface, check IsGenericType, check if GetGenericTypeDefinition()
== typeof(IComparable<>) and then call GetGenericArguments()
Aug 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.