what's strangest dilemma box you've seen c# .net?


i collect few dilemma cases always hear more. page wholly unequivocally covers c# libel pieces bobs, nonetheless i also core .net things engaging too. example, here's isn't page, nonetheless i incredible:



string x = new string(new char[0]);
string y = new string(new char[0]);
console.writeline(object.referenceequals(x, y));


i'd design imitation fake - after all, "new" (with anxiety type) always creates new object, doesn't it? specs both c# cli infer should. well, sole case. prints true, finished each chronicle horizon i've tested with. (i haven't attempted mono, admittedly...)



just clear, wholly an instance kind thing i'm looking - i wasn't quite looking discussion/explanation oddity. (it's same normal twine interning; particular, twine interning doesn't customarily occur constructor called.) i unequivocally seeking identical rare behaviour.



any gems unctuous out there?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?