c# Programming Glossary: intuitively
Boxing / Unboxing Nullable Types - Why this implementation? http://stackoverflow.com/questions/1387597/boxing-unboxing-nullable-types-why-this-implementation 42 object obj val if obj null Our object is not null so intuitively it's an `int` value int x int obj ...but this would have failed...
Contravariance explained http://stackoverflow.com/questions/1962629/contravariance-explained in such a manner that I think most developers understand intuitively. covariant operation Animal someAnimal new Giraffe assume returns..
What's the reason high-level languages like C#/Java mask the bit shift count operand? http://stackoverflow.com/questions/2311476/whats-the-reason-high-level-languages-like-c-java-mask-the-bit-shift-count-ope view beyond the hardware implementation and behave more intuitively Even better if they can take a negative count to mean to shift..
Natural Sort Order in C# http://stackoverflow.com/questions/248603/natural-sort-order-in-c-sharp the changes that were made for Vista to make it work more intuitively. The plus side of this function is that it will have the same..
Why does this generic constraint compile when it seems to have a circular reference http://stackoverflow.com/questions/3783321/why-does-this-generic-constraint-compile-when-it-seems-to-have-a-circular-refere unfamiliar with the intricacies of the type system to intuitively understand. 2 It does not map well to my intuition of what a..
Why can't I assign a List<Derived> to a List<Base>? http://stackoverflow.com/questions/4652858/why-cant-i-assign-a-listderived-to-a-listbase Fruit class Apple Fruit class Banana Fruit This should intuitively compile right Cause an Apple is Fruit. List Fruit fruits new..
C# float bug? 0.1 - 0.1 = 1.490116E-08 http://stackoverflow.com/questions/478474/c-sharp-float-bug-0-1-0-1-1-490116e-08 zero. With decimal you'll usually get more what you expect intuitively. See also Jon Skeet's pages here Binary floating point Decimal..
can we access a private variable using an object http://stackoverflow.com/questions/5228825/can-we-access-a-private-variable-using-an-object want to make. The restriction on class level looks counter intuitively. And maybe this is wrong. But the member variables are still..
What is the lifetime of a delegate created by a lambda in C#? http://stackoverflow.com/questions/6280656/what-is-the-lifetime-of-a-delegate-created-by-a-lambda-in-c you can use a lambda. While wondering how they worked I intuitively figured they are probably only created once . This inspired..
Why is List.Sort() an instance method but Array.Sort() static? http://stackoverflow.com/questions/6713932/why-is-list-sort-an-instance-method-but-array-sort-static method Why are they not both implemented in the same way intuitively to me it would make more sense if they were both instance methods..
Reference equality performance difference? ((object)obj1 == (object)obj2) vs. object.ReferenceEquals( obj1, obj2 ) http://stackoverflow.com/questions/735554/reference-equality-performance-difference-objectobj1-objectobj2-vs-ob any detailed knowledge of the JIT but logically and intuitively I believe this is wrong if the JIT behaves anything like an..
Why does this implicit conversion from int to uint work? http://stackoverflow.com/questions/9008637/why-does-this-implicit-conversion-from-int-to-uint-work to string string x object null But this does although intuitively it shouldn't uint x int 0 Why does the compiler allow this case..
|