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

C#

 
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?


GeneralRe: Dictionary Problem Pin
egpuyos11-Oct-09 22:28
egpuyos11-Oct-09 22:28 
GeneralRe: Dictionary Problem Pin
Luc Pattyn12-Oct-09 0:12
sitebuilderLuc Pattyn12-Oct-09 0:12 
GeneralRe: Dictionary Problem Pin
egpuyos11-Oct-09 22:14
egpuyos11-Oct-09 22:14 
GeneralRe: Dictionary Problem Pin
freakyit11-Oct-09 22:29
freakyit11-Oct-09 22:29 
Questionregarding auto generated mail in window application Pin
NarendraSinghJTV11-Oct-09 21:43
NarendraSinghJTV11-Oct-09 21:43 
AnswerRe: regarding auto generated mail in window application Pin
SeMartens11-Oct-09 21:49
SeMartens11-Oct-09 21:49 
GeneralRe: regarding auto generated mail in window application Pin
NarendraSinghJTV11-Oct-09 22:55
NarendraSinghJTV11-Oct-09 22:55 
QuestionProblem with RichText Box(Right Click Cut/Copy/Paste/SelectAll)... Pin
spalanivel11-Oct-09 21:41
spalanivel11-Oct-09 21:41 
AnswerRe: Problem with RichText Box(Right Click Cut/Copy/Paste/SelectAll)... Pin
Lyon Sun11-Oct-09 22:01
Lyon Sun11-Oct-09 22:01 
GeneralRe: Problem with RichText Box(Right Click Cut/Copy/Paste/SelectAll)... Pin
spalanivel11-Oct-09 22:06
spalanivel11-Oct-09 22:06 
GeneralRe: Problem with RichText Box(Right Click Cut/Copy/Paste/SelectAll)... Pin
Lyon Sun11-Oct-09 22:26
Lyon Sun11-Oct-09 22:26 
AnswerRe: Problem with RichText Box(Right Click Cut/Copy/Paste/SelectAll)... Pin
dan!sh 11-Oct-09 22:07
professional dan!sh 11-Oct-09 22:07 
QuestionTo modify table column. Pin
kmb8911-Oct-09 19:54
kmb8911-Oct-09 19:54 
AnswerRe: To modify table column. Pin
SeMartens11-Oct-09 21:51
SeMartens11-Oct-09 21:51 
GeneralRe: To modify table column. Pin
kmb8911-Oct-09 22:14
kmb8911-Oct-09 22:14 
GeneralRe: To modify table column. Pin
SeMartens11-Oct-09 22:21
SeMartens11-Oct-09 22:21 
GeneralRe: To modify table column. Pin
kmb8911-Oct-09 22:51
kmb8911-Oct-09 22:51 

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.