Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
String comparison question
Prakash Tripathi
Feb 2 2014 1:31 PM
752
Reply
Can anyone explain that why Am I getting false in Line Number 5.
string a = "prakash";
string b = "p";
b += "rakash"; // Append to contents of 'b'
Console.WriteLine(a == b); //True
Console.WriteLine((object)a == (object)b); //False
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
C# CODE generate courseid like 1001 1002.. without repeating
SnakeGame Help