Click here to Skip to main content
15,909,645 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: A Way Capturing Straight the Active Windows Only ?? Pin
jitforce25858-Aug-12 5:34
jitforce25858-Aug-12 5:34 
GeneralRe: A Way Capturing Straight the Active Windows Only ?? Pin
jitforce25858-Aug-12 6:10
jitforce25858-Aug-12 6:10 
GeneralRe: A Way Capturing Straight the Active Windows Only ?? Pin
Pete O'Hanlon8-Aug-12 7:28
mvePete O'Hanlon8-Aug-12 7:28 
GeneralRe: A Way Capturing Straight the Active Windows Only ?? Pin
jitforce25858-Aug-12 8:07
jitforce25858-Aug-12 8:07 
Question.net framework 4 takes much time than 2.0. Why? Pin
ruby_e_s8-Aug-12 2:26
ruby_e_s8-Aug-12 2:26 
AnswerRe: .net framework 4 takes much time than 2.0. Why? Pin
Pete O'Hanlon8-Aug-12 2:47
mvePete O'Hanlon8-Aug-12 2:47 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
ruby_e_s8-Aug-12 21:28
ruby_e_s8-Aug-12 21:28 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
Pete O'Hanlon8-Aug-12 23:19
mvePete O'Hanlon8-Aug-12 23:19 
My suspicion is that the problem actually lies with the culture. This is what happens inside Compare:
C#
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).

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
ruby_e_s8-Aug-12 23:36
ruby_e_s8-Aug-12 23:36 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
Pete O'Hanlon8-Aug-12 23:48
mvePete O'Hanlon8-Aug-12 23:48 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
ruby_e_s9-Aug-12 0:01
ruby_e_s9-Aug-12 0:01 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
Pete O'Hanlon9-Aug-12 0:06
mvePete O'Hanlon9-Aug-12 0:06 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
ruby_e_s9-Aug-12 0:10
ruby_e_s9-Aug-12 0:10 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
Pete O'Hanlon9-Aug-12 0:34
mvePete O'Hanlon9-Aug-12 0:34 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
ruby_e_s9-Aug-12 20:33
ruby_e_s9-Aug-12 20:33 
GeneralRe: .net framework 4 takes much time than 2.0. Why? Pin
Pete O'Hanlon9-Aug-12 22:13
mvePete O'Hanlon9-Aug-12 22:13 
QuestionWPF Pin
premnivaskannan7-Aug-12 1:06
premnivaskannan7-Aug-12 1:06 
AnswerRe: WPF Pin
Eddy Vluggen7-Aug-12 1:07
professionalEddy Vluggen7-Aug-12 1:07 
SuggestionRe: WPF Pin
Matt T Heffron7-Aug-12 15:57
professionalMatt T Heffron7-Aug-12 15:57 
GeneralRe: WPF Pin
premnivaskannan12-Aug-12 23:06
premnivaskannan12-Aug-12 23:06 
GeneralRe: WPF Pin
Matt T Heffron14-Aug-12 8:21
professionalMatt T Heffron14-Aug-12 8:21 
AnswerRe: WPF Pin
Abhinav S7-Aug-12 17:26
Abhinav S7-Aug-12 17:26 
Questiona good introductory level book about .Net platform? Pin
Tetraquark4-Aug-12 5:08
Tetraquark4-Aug-12 5:08 
AnswerRe: a good introductory level book about .Net platform? Pin
Eddy Vluggen4-Aug-12 6:08
professionalEddy Vluggen4-Aug-12 6:08 
GeneralRe: a good introductory level book about .Net platform? Pin
Tetraquark4-Aug-12 23:12
Tetraquark4-Aug-12 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.