Click here to Skip to main content
15,891,184 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: "Unable to launch the configured Visual Studio Development Web Server" Error Pin
Z@db@khsh20-Jul-12 8:46
Z@db@khsh20-Jul-12 8:46 
Questionweb form dictionary compare Pin
classy_dog24-Jun-12 18:44
classy_dog24-Jun-12 18:44 
AnswerRe: web form dictionary compare Pin
Rahul Rajat Singh25-Jun-12 0:29
professionalRahul Rajat Singh25-Jun-12 0:29 
AnswerRe: web form dictionary compare Pin
jkirkerx25-Jun-12 8:55
professionaljkirkerx25-Jun-12 8:55 
GeneralRe: web form dictionary compare Pin
Richard MacCutchan25-Jun-12 22:23
mveRichard MacCutchan25-Jun-12 22:23 
GeneralRe: web form dictionary compare Pin
jkirkerx26-Jun-12 7:45
professionaljkirkerx26-Jun-12 7:45 
GeneralRe: web form dictionary compare Pin
Richard MacCutchan26-Jun-12 8:19
mveRichard MacCutchan26-Jun-12 8:19 
GeneralRe: web form dictionary compare Pin
jkirkerx26-Jun-12 11:02
professionaljkirkerx26-Jun-12 11:02 
We got a little debate going on here in this rodeo cowboy

I read the reference you pointed to, and I must support your first argument regarding comparison operators and objects

Operator B for string b = string.Copy(a) returns false, but a and c returns true

C#
// Define some string
string a = "hello";
string b = String.Copy(a);
string c = "hello";

// compare string values for a constant and an instance: True
Console.WriteLine(a == b);
      
// compare string references; 
// a is a constant but b is an instance: False
Console.WriteLine((object)a == (object)b);

// compare string references, both constants have the same value,
// so string interning points to same reference: True
Console.WriteLine((object)a == (object)c);

Anwsers:
True
False
True


[edit]

The op took a shortcut by using an operator against the objects, and failed to create 2 new buffers to store the actual values he needs to string compare.

I threw a little c++ lingo in there.
GeneralRe: web form dictionary compare Pin
Richard MacCutchan26-Jun-12 21:32
mveRichard MacCutchan26-Jun-12 21:32 
GeneralRe: web form dictionary compare Pin
jkirkerx27-Jun-12 6:28
professionaljkirkerx27-Jun-12 6:28 
GeneralRe: web form dictionary compare Pin
Richard MacCutchan27-Jun-12 6:31
mveRichard MacCutchan27-Jun-12 6:31 
GeneralRe: web form dictionary compare Pin
jkirkerx27-Jun-12 6:42
professionaljkirkerx27-Jun-12 6:42 
JokeLets do something awesome... Pin
AmitKumar8924-Jun-12 18:08
AmitKumar8924-Jun-12 18:08 
GeneralRe: Lets do something awesome... Pin
Richard MacCutchan24-Jun-12 22:57
mveRichard MacCutchan24-Jun-12 22:57 
GeneralRe: Lets do something awesome... Pin
fjdiewornncalwe25-Jun-12 5:07
professionalfjdiewornncalwe25-Jun-12 5:07 
Questionsession variables Pin
sc steinhayse24-Jun-12 12:27
sc steinhayse24-Jun-12 12:27 
AnswerRe: session variables Pin
wikizhao24-Jun-12 20:34
wikizhao24-Jun-12 20:34 
AnswerRe: session variables Pin
Rahul Rajat Singh25-Jun-12 0:24
professionalRahul Rajat Singh25-Jun-12 0:24 
AnswerRe: session variables Pin
jkirkerx25-Jun-12 8:59
professionaljkirkerx25-Jun-12 8:59 
SuggestionRe: session variables Pin
Mukesh_Chauhan25-Jun-12 21:44
Mukesh_Chauhan25-Jun-12 21:44 
Questiondata context object in web form 2010 app Pin
sc steinhayse24-Jun-12 7:58
sc steinhayse24-Jun-12 7:58 
AnswerRe: data context object in web form 2010 app Pin
Sandeep Mewara24-Jun-12 10:04
mveSandeep Mewara24-Jun-12 10:04 
Questioncustom validator for C# 2010 web app Pin
sc steinhayse24-Jun-12 7:33
sc steinhayse24-Jun-12 7:33 
AnswerRe: custom validator for C# 2010 web app Pin
Sandeep Mewara24-Jun-12 9:56
mveSandeep Mewara24-Jun-12 9:56 
AnswerRe: custom validator for C# 2010 web app Pin
jkirkerx24-Jun-12 10:23
professionaljkirkerx24-Jun-12 10:23 

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.