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

IComparable

P: n/a
Hi all

I have a class implements IComparable interface, however, I got a error on the following method

protected override int IComparable.CompareTo(object value

..
Does anyone know the reason? one thing question is what is the difference between string and String in C#

Thanks in advance

Simon
Nov 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Simon,

Is this class implementing IComparable?
Why do you override it?
"Simon" <si************@yahoo.com> wrote in message
news:90**********************************@microsof t.com...
Hi all,

I have a class implements IComparable interface, however, I got a error on the following method.
protected override int IComparable.CompareTo(object value)
{
...
}

Does anyone know the reason? one thing question is what is the difference

between string and String in C#?

None.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
Nov 22 '05 #2

P: n/a
Try changing the signature to "public int CompareTo(object value)".

"Simon" <si************@yahoo.com> wrote in message
news:90**********************************@microsof t.com...
Hi all,

I have a class implements IComparable interface, however, I got a error on the following method.
protected override int IComparable.CompareTo(object value)
{
...
}

Does anyone know the reason? one thing question is what is the difference between string and String in C#?
Thanks in advanced

Simon

Nov 22 '05 #3

P: n/a
Hi Simon,

Is this class implementing IComparable?
Why do you override it?
"Simon" <si************@yahoo.com> wrote in message
news:90**********************************@microsof t.com...
Hi all,

I have a class implements IComparable interface, however, I got a error on the following method.
protected override int IComparable.CompareTo(object value)
{
...
}

Does anyone know the reason? one thing question is what is the difference

between string and String in C#?

None.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
Nov 22 '05 #4

P: n/a
Try changing the signature to "public int CompareTo(object value)".

"Simon" <si************@yahoo.com> wrote in message
news:90**********************************@microsof t.com...
Hi all,

I have a class implements IComparable interface, however, I got a error on the following method.
protected override int IComparable.CompareTo(object value)
{
...
}

Does anyone know the reason? one thing question is what is the difference between string and String in C#?
Thanks in advanced

Simon

Nov 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.