public sealed class String : IComparable<string>

Posted by Saranpselvam under C# on 5/26/2014 | Points: 10 | Views : 415 | Status : [Member] | Replies : 1
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 > ?


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

Hi Saranpselvam,

IComparable< string > is generic declaration of IComparable interface.
you can read more about generics here : [Link][/Link]

Anupam Singh

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

Login to post response