Why does code derive from for example, IComparer
ie,
class SomeClass : IComparer
{
public SomeClass()
{
}
public int Compare(object x, object y)
{
return someInt;
}
}
When it just uses that and could have done without deriving ICompare and
got the same result.
class SomeClass
{
public SomeClass()
{
}
public int Compare(object x, object y)
{
return someInt;
}
}
--
Duncan McNutt
Microsoft Product Deactivation Team
--
ie,
class SomeClass : IComparer
{
public SomeClass()
{
}
public int Compare(object x, object y)
{
return someInt;
}
}
When it just uses that and could have done without deriving ICompare and
got the same result.
class SomeClass
{
public SomeClass()
{
}
public int Compare(object x, object y)
{
return someInt;
}
}
--
Duncan McNutt
Microsoft Product Deactivation Team
--
Comment