|
My suspicion is that the problem actually lies with the culture. This is what happens inside Compare:
public int Compare(object a, object b)
{
if (a == b)
{
return 0;
}
if (a == null)
{
return -1;
}
if (b == null)
{
return 1;
}
if (this.m_compareInfo != null)
{
string str = a as string;
string str2 = b as string;
if ((str != null) && (str2 != null))
{
return this.m_compareInfo.Compare(str, str2);
}
}
IComparable comparable = a as IComparable;
if (comparable == null)
{
throw new ArgumentException(Environment.GetResourceString("Argument_ImplementIComparable"));
}
return comparable.CompareTo(b);
} To test this hypothesis out, try dropping the CultureInfo out and see what happens. (The m_compareInfo.Compare part is the test that occurs when you set the CultureInfo ).
|
|
|
|
|
Sorry! I didnt get your answer. How to drop the CultureInfo? May i use Comparer.Default.Compare(object a, object b) function?
|
|
|
|
|
To test it, change
Comparer cRow = new Comparer(new CultureInfo("es-ES", false)); to
Comparer cRow = new Comparer();
|
|
|
|
|
I couldnt do it. The Comparer Constructor must take CultureInfo as Parameter. Default constructor is not available!!!
|
|
|
|
|
Doh. Of course it isn't. Sorry about that. OK, use the Comparer.Default.Compare(object, object) method to test the timings.
|
|
|
|
|
Ok. I will try and let you know
|
|
|
|
|
ruby_e_s wrote: I will try and let you know
Looking forward to seeing it.
|
|
|
|
|
Yeah! Now Framework 4 also took less time!!! Thanks for your help...
|
|
|
|
|
Not a problem. I'm glad I could help.
|
|
|
|
|
how to draw ecg waveform in wpf please anyone give tips...advance in thanks whomever helping me...thanks friends...
|
|
|
|
|
Follow one of the tutorials[^] out there.
You're welcome.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
You should ask on the "Silverlight / WPF" forum. That's where the WPF gurus hang out.
That being said, start by looking at the Canvas control, and Line element.
|
|
|
|
|
i want in wpf please help me if u can
|
|
|
|
|
Canvas is in System.Windows.Controls and Line is in System.Windows.Shapes . Also look at System.Windows.Shapes.Polyline .
These are WPF .
|
|
|
|
|
A third party tool can help you generate waveforms.
There is a sound visualization library available here[^].
In addition, you can check out this article[^].
|
|
|
|
|
Hi there,
I am an experienced programmer however I have no experience with .Net. Can anyone please recommend me a good introductory level book about .Net platform? For now I am not interested in books about particular .Net programming languages like C# but primarily about the .Net platform itself.
I am also interested in a book about the .Net API. For Win32 there is a good book on Win32 API programming - "Programming Windows", 5th edition by Charles Petzold. The book is an excellent guide on native Win32 API. Can anyone recommend me a similar book on .Net API?
thank you in advance for the answers!
kind regards
|
|
|
|
|
Tetraquark wrote: Can anyone please recommend me a good introductory level book about .Net platform? For now I am not interested in books about particular .Net programming languages like C# but primarily about the .Net platform itself.
It's hard to use the framework without a language, and it's not recommended. I suggest you start with Head First C#[^] from O'Reilly, reading Mannings' C# in depth[^] right after that.
The most used languages for the framework would be C#, VB.NET and C++. The latter two were alive before the framework, and come with their own history and quirks. C# was new, and combines the best from those two languages.
All those languages are compiled to IL, which you could learn too[^]. It's just not recommended to actually program in IL, since it would be a bit inefficient to do so; it's error-prone and time-consuming, compared to writing your code in a higher-level language. It is helpful to take a look at it still; later on you'll be using a disassembler like ILSpy.
Tetraquark wrote: The book is an excellent guide on native Win32 API.
The Windows 95 resource kit[^] might be interesting, but the best book on WinAPI is a collection of blog-entries from Raymond Chen. You can find his blog here[^].
Hope this helps
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
OK I will read the books on C# first, but what about the best book about the .Net platform itself what is the main question here?
Also are there any recommendations on the best book about .Net API? I am not looking for a reference (MSDN would be a good reference on .Net API) but a book that is written like a guide on .Net API in a similar way Charles Petzold's book on Win32 API.
modified 5-Aug-12 5:28am.
|
|
|
|
|
|
thank you!
Yes Petzold uses C for examples in his famous book on Win32 API
|
|
|
|
|
I second Eddy's suggestions, and do feel free to ask questions in this forum and people will try their best to answer them
Language-wise, I prefer C# since I came from a C++/Java background before coming over to .Net and the transition was fairly smooth.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Jeffrey Richter's CLR via C# is book for you.
|
|
|
|
|
thank you very much! That is the book I am looking for!
|
|
|
|
|
|
Hello friends,
I need a help ,i want to open a windows application when my window service starts.i have done with my window service and with the application too.Bt i just want to open window application using window service.Can anyone please help me that how can i link both the applications and where do i put the code in window service to open window application and what code i have to write to open my window application when window service starts.
Thx in advance.
reply me fast its urgent..
Bhanu Madan
|
|
|
|