class MyComparer : IComparable<string>
{
public int CompareTo(string second)
{
int diff = this.Length - second.Length;
return ...
}
}
That code doesn't work because "MyComparer" does not contain a definiton for "Length", so how to access Length?