by: Simon |
last post by:
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...
|
by: raffelm |
last post by:
In the first class below, I get an error that
AnotherClientBaseDataRecord does not implement
IComparable.CompareTo(object)...yet the second class below is
implemented identicially and it does get...
|
by: ESPNSTI |
last post by:
Hi,
I'm trying to use a generics dictionary with a key class that implements and
needs IComparable<>.
However when I attempt to use the dictionary, it doesn't appear to use the
IComparable<> to...
|
by: Stefan L |
last post by:
Hi everybody,
when migrating to the .NET 2.0 framework we decided to encourage the use
of generic functions because they ought to run faster than their
equivalent object-implemantations.
Now...
|
by: fniles |
last post by:
I have a collection inside a class, sometimes when I add to the collection,
I get the error "At least one object must implement IComparable".
What does the error mean ?
Thanks.
Public Class...
|
by: Michel Walsh |
last post by:
Question:
public static Boolean In<T>(T x, param T y) where T : struct,
IComparable<T>
{
for(int i=0; i<y.Length; i++)
{
if(x==y) return true;
}
return false;
|
by: Brett Romero |
last post by:
What are the reasons to use one over the other?
SortedList implements IComparer.Compare(). Why would you also want to
create a SortedList class that implements IComparable.CompareTo()?
I know...
|
by: SimeonArgus |
last post by:
I need to sort a list of points, so I've considered using an
IComparable implementation. Should be easy, right? But I need to know
two things in the CompareTo function, not one.
Test1: I need to...
|
by: Samuel R. Neff |
last post by:
You can you program against generic interfaces generically?
For example, how can I make the following code which works for the
non-generic interface also work for the generic counterparts?
...
|
by: Tony Johansson |
last post by:
Hello!¨
I read a book and here it says that it's most often an advantage to
implement the generic interface IComparable<T>
instead of the general interface IComparable. This is correct!
Now...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|