Click here to Skip to main content
15,894,313 members
Home / Discussions / C#
   

C#

 
AnswerRe: why no edit-flag at design-time, no compile-time error on this code abomination ? Pin
Sascha Lefèvre26-May-15 11:17
professionalSascha Lefèvre26-May-15 11:17 
QuestionC# -> PHP/MYSQL Pin
Zell Kennedy26-May-15 4:02
Zell Kennedy26-May-15 4:02 
AnswerRe: C# -> PHP/MYSQL Pin
Bernhard Hiller26-May-15 6:36
Bernhard Hiller26-May-15 6:36 
GeneralRe: C# -> PHP/MYSQL Pin
Zell Kennedy26-May-15 7:30
Zell Kennedy26-May-15 7:30 
QuestionProblem Faced when perform row grouping in excel using c# Pin
Member 1130300726-May-15 2:18
Member 1130300726-May-15 2:18 
QuestionDifference Between Equality Operator ( ==) and .Equals() Method in C# Pin
Gyana_Ranjan Dash25-May-15 20:26
Gyana_Ranjan Dash25-May-15 20:26 
AnswerRe: Difference Between Equality Operator ( ==) and .Equals() Method in C# Pin
OriginalGriff25-May-15 20:46
mveOriginalGriff25-May-15 20:46 
GeneralRe: Difference Between Equality Operator ( ==) and .Equals() Method in C# Pin
Agent__00725-May-15 22:43
professionalAgent__00725-May-15 22:43 
Just to add, the second example there is rather ambiguous.

Rather than having object, if you modify the code slightly to use string (string is still a reference type) as:
C#
string name = "sandeep"; // originally -> object name = "sandeep";
char[] values = {'s','a','n','d','e','e','p'};
string myName = new string(values);  // originally -> object myName = new string(values); 

Console.WriteLine("== operator result is {0}", name == myName); // prints TRUE
Console.WriteLine("Equals method result is {0}", myName.Equals(name)); // prints TRUE
Console.ReadLine();

This is due to the CLR String pool -> the strings with same content reference to the same memory.

Just saying, if that interests the OP. Smile | :)
You have just been Sharapova'd.

GeneralRe: Difference Between Equality Operator ( ==) and .Equals() Method in C# Pin
Alan N25-May-15 23:22
Alan N25-May-15 23:22 
GeneralRe: Difference Between Equality Operator ( ==) and .Equals() Method in C# Pin
Agent__00725-May-15 23:56
professionalAgent__00725-May-15 23:56 
GeneralRe: Difference Between Equality Operator ( ==) and .Equals() Method in C# Pin
Gyana_Ranjan Dash26-May-15 21:08
Gyana_Ranjan Dash26-May-15 21:08 
GeneralRe: Difference Between Equality Operator ( ==) and .Equals() Method in C# Pin
Armugam Indrani28-May-15 22:48
professionalArmugam Indrani28-May-15 22:48 
AnswerRe: Difference Between Equality Operator ( ==) and .Equals() Method in C# PinPopular
harold aptroot26-May-15 1:02
harold aptroot26-May-15 1:02 
QuestionDataRelation problem Pin
Supratik De25-May-15 6:35
Supratik De25-May-15 6:35 
AnswerRe: DataRelation problem Pin
Richard Deeming27-May-15 1:19
mveRichard Deeming27-May-15 1:19 
QuestionInterface implementation strategies : four techniques; but: when (if) to use (which) one of them Pin
BillWoodruff25-May-15 4:06
professionalBillWoodruff25-May-15 4:06 
AnswerRe: Interface implementation strategies : four techniques; but: when (if) to use (which) one of them Pin
Richard Deeming27-May-15 1:29
mveRichard Deeming27-May-15 1:29 
QuestionToolstrip grey border Pin
Member 1171517124-May-15 6:52
Member 1171517124-May-15 6:52 
AnswerRe: Toolstrip grey border Pin
Ravi Bhavnani25-May-15 9:53
professionalRavi Bhavnani25-May-15 9:53 
QuestionReport From Date to Date Pin
abdo.kouta23-May-15 5:45
abdo.kouta23-May-15 5:45 
AnswerRe: Report From Date to Date Pin
OriginalGriff23-May-15 6:15
mveOriginalGriff23-May-15 6:15 
GeneralRe: Report From Date to Date Pin
abdo.kouta23-May-15 8:02
abdo.kouta23-May-15 8:02 
AnswerRe: Report From Date to Date Pin
Mycroft Holmes23-May-15 17:22
professionalMycroft Holmes23-May-15 17:22 
QuestionRe: Report From Date to Date Pin
abdo.kouta23-May-15 21:37
abdo.kouta23-May-15 21:37 
AnswerRe: Report From Date to Date Pin
Mycroft Holmes24-May-15 0:28
professionalMycroft Holmes24-May-15 0:28 

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.