Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
QuestionToolbar Pin
deepscyberpulse6-Feb-06 6:29
deepscyberpulse6-Feb-06 6:29 
Questionsize=new size() and form.width/height assignment fail to change form size Pin
Sebastian Schneider6-Feb-06 5:17
Sebastian Schneider6-Feb-06 5:17 
AnswerRe: size=new size() and form.width/height assignment fail to change form size Pin
Stanciu Vlad6-Feb-06 5:32
Stanciu Vlad6-Feb-06 5:32 
GeneralRe: size=new size() and form.width/height assignment fail to change form size Pin
Sebastian Schneider6-Feb-06 10:35
Sebastian Schneider6-Feb-06 10:35 
GeneralRe: size=new size() and form.width/height assignment fail to change form size Pin
Stanciu Vlad6-Feb-06 10:49
Stanciu Vlad6-Feb-06 10:49 
QuestionWeird C# String Behavior Pin
malharone6-Feb-06 4:39
malharone6-Feb-06 4:39 
AnswerRe: Weird C# String Behavior Pin
Joe Woodbury6-Feb-06 4:52
professionalJoe Woodbury6-Feb-06 4:52 
AnswerRe: Weird C# String Behavior Pin
Judah Gabriel Himango6-Feb-06 4:55
sponsorJudah Gabriel Himango6-Feb-06 4:55 
One reason might be because "ABC" is interned by the framework. The JIT may do this to save memory, at the cost of getting bitten if you're relying on different strings for multithreading or native interop purposes.

Also, the compiler might be generating code like this:

string __val = "ABC";
string s1 = __val;
string s2 = __val;

The only way to tell for sure is use ILDasm or Reflector to disassemble your code and check out what's going on.

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Connor's Christmas Spectacular!
Judah Himango


GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 5:15
malharone6-Feb-06 5:15 
GeneralRe: Weird C# String Behavior Pin
Judah Gabriel Himango6-Feb-06 5:18
sponsorJudah Gabriel Himango6-Feb-06 5:18 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 5:29
malharone6-Feb-06 5:29 
GeneralRe: Weird C# String Behavior Pin
Judah Gabriel Himango6-Feb-06 7:15
sponsorJudah Gabriel Himango6-Feb-06 7:15 
AnswerRe: Weird C# String Behavior Pin
leppie6-Feb-06 5:16
leppie6-Feb-06 5:16 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 5:36
malharone6-Feb-06 5:36 
AnswerRe: Weird C# String Behavior Pin
Nish Nishant6-Feb-06 6:06
sitebuilderNish Nishant6-Feb-06 6:06 
GeneralRe: Weird C# String Behavior Pin
malharone6-Feb-06 6:20
malharone6-Feb-06 6:20 
GeneralRe: Weird C# String Behavior Pin
Daniel Grunwald6-Feb-06 6:55
Daniel Grunwald6-Feb-06 6:55 
GeneralNoooo! Pin
leppie6-Feb-06 7:49
leppie6-Feb-06 7:49 
QuestionWierdness trying to use a class library in a service Pin
ByStorm Software6-Feb-06 4:22
ByStorm Software6-Feb-06 4:22 
AnswerRe: Wierdness trying to use a class library in a service Pin
Joe Woodbury6-Feb-06 4:54
professionalJoe Woodbury6-Feb-06 4:54 
AnswerRe: Wierdness trying to use a class library in a service Pin
leppie6-Feb-06 7:57
leppie6-Feb-06 7:57 
GeneralRe: Wierdness trying to use a class library in a service Pin
ByStorm Software6-Feb-06 9:48
ByStorm Software6-Feb-06 9:48 
QuestionXsltArgumentList doesn't accept long parameter values Pin
mikko laanti6-Feb-06 4:21
mikko laanti6-Feb-06 4:21 
AnswerRe: XsltArgumentList doesn't accept long parameter values Pin
leppie6-Feb-06 5:21
leppie6-Feb-06 5:21 
QuestionAdd to favourites Pin
Brendan Vogt6-Feb-06 3:51
Brendan Vogt6-Feb-06 3: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.