public sealed class String : IComparable<string>

Posted by Saranpselvam under C# on 5/26/2014 | Points: 10 | Views : 476 | Status : [Member] | Replies : 1
Hi
Please explain me to understand this
generally we are using inheritance like given below
public sealed class String : IComparable
but what is the meaning of
public sealed class String : IComparable< string >
what is the use of < string > ?




Responses

Posted by: _Anupam Singh on: 5/28/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Saranpselvam,

IComparable< string > is generic declaration of IComparable interface.
you can read more about generics here : [Link]http://msdn.microsoft.com/en-us/library/ms379564(v=vs.80).aspx[/Link]

Anupam Singh

Saranpselvam, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response