Click here to Skip to main content
15,916,379 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connect to mapped network drive Pin
musefan12-Oct-09 3:10
musefan12-Oct-09 3:10 
GeneralRe: Connect to mapped network drive Pin
Luc Pattyn12-Oct-09 3:50
sitebuilderLuc Pattyn12-Oct-09 3:50 
GeneralRe: Connect to mapped network drive Pin
musefan12-Oct-09 5:28
musefan12-Oct-09 5:28 
GeneralRe: Connect to mapped network drive Pin
ragnaroknrol12-Oct-09 7:56
ragnaroknrol12-Oct-09 7:56 
Questionhow to compare textbox string with data base field Pin
Mangesh Tomar12-Oct-09 0:49
Mangesh Tomar12-Oct-09 0:49 
AnswerRe: how to compare textbox string with data base field Pin
Luc Pattyn12-Oct-09 1:00
sitebuilderLuc Pattyn12-Oct-09 1:00 
AnswerRe: how to compare textbox string with data base field Pin
Md. Marufuzzaman12-Oct-09 1:24
professionalMd. Marufuzzaman12-Oct-09 1:24 
AnswerRe: how to compare textbox string with data base field Pin
OriginalGriff12-Oct-09 3:08
mveOriginalGriff12-Oct-09 3:08 
QuestionDynamically created Icon for Number in Taskbar Pin
stancrm11-Oct-09 23:30
stancrm11-Oct-09 23:30 
AnswerRe: Dynamically created Icon for Number in Taskbar Pin
freakyit11-Oct-09 23:46
freakyit11-Oct-09 23:46 
GeneralRe: Dynamically created Icon for Number in Taskbar Pin
stancrm11-Oct-09 23:54
stancrm11-Oct-09 23:54 
GeneralRe: Dynamically created Icon for Number in Taskbar Pin
freakyit11-Oct-09 23:59
freakyit11-Oct-09 23:59 
AnswerRe: Dynamically created Icon for Number in Taskbar Pin
Luc Pattyn12-Oct-09 0:04
sitebuilderLuc Pattyn12-Oct-09 0:04 
Questionhow to cancel eventArgs Pin
Mr.Kode11-Oct-09 23:02
Mr.Kode11-Oct-09 23:02 
AnswerRe: how to cancel eventArgs Pin
stancrm11-Oct-09 23:41
stancrm11-Oct-09 23:41 
GeneralRe: how to cancel eventArgs Pin
freakyit11-Oct-09 23:49
freakyit11-Oct-09 23:49 
Question[Message Deleted] Pin
Swetha Srinivasan11-Oct-09 22:45
Swetha Srinivasan11-Oct-09 22:45 
AnswerRe: Title for the TableOfContents Pin
Md. Marufuzzaman11-Oct-09 23:23
professionalMd. Marufuzzaman11-Oct-09 23:23 
QuestionC# Attributes and methods Pin
manustone11-Oct-09 22:42
manustone11-Oct-09 22:42 
AnswerRe: C# Attributes and methods Pin
Simon P Stevens11-Oct-09 23:24
Simon P Stevens11-Oct-09 23:24 
AnswerRe: C# Attributes and methods Pin
Luc Pattyn12-Oct-09 0:08
sitebuilderLuc Pattyn12-Oct-09 0:08 
Question[Message Deleted] Pin
egpuyos11-Oct-09 22:04
egpuyos11-Oct-09 22:04 
AnswerRe: Dictionary Problem Pin
dan!sh 11-Oct-09 22:10
professional dan!sh 11-Oct-09 22:10 
GeneralRe: Dictionary Problem Pin
egpuyos11-Oct-09 22:12
egpuyos11-Oct-09 22:12 
GeneralRe: Dictionary Problem Pin
N a v a n e e t h11-Oct-09 22:17
N a v a n e e t h11-Oct-09 22:17 
What do you think the output of:
string test = "test";
byte[] b1 = Encoding.Default.GetBytes(test);
byte[] b2 = Encoding.Default.GetBytes(test);
Console.WriteLine(b1 == b2);
It will be false as arrays are reference type and compared with reference equality. This is the reason why your code fails. BTW, what is wrong in keeping the string itself rather than the bytes?


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.