Blog - Title

August, 2012

  • Fabulous Adventures In Coding

    An "is" operator puzzle, part two

    • 13 Comments
    As I said last time , that was a pretty easy puzzle: either FooBar, or the type of local variable x, can be a type parameter. That is: void M<FooBar>() { int x = 0; bool b = x is FooBar; // legal, true if FooBar is int. FooBar fb = (FooBar)x; /...
  • Fabulous Adventures In Coding

    Fabulous Adventures In Casting

    • 3 Comments
    I've written a lot about casting over the years in this blog , but always in the context of the "cast operator": the operator that instructs the compiler to make an explicit conversion from a value of one type to a value of another type. I have recently...
  • Fabulous Adventures In Coding

    An "is" operator puzzle, part one

    • 21 Comments
    It is possible for a program with some local variable x: bool b = x is FooBar; to assign true to b at runtime, even though there is no conversion, implicit or explicit, from x to FooBar allowed by the compiler! That is, FooBar foobar = (FooBar)x; would...
  • Fabulous Adventures In Coding

    Wackiness ensues

    • 8 Comments
    No tech today, but this is too funny to not pass along, so consider this your fun for Friday. What would happen if Anders Hejlsberg and Barbara Liskov were forced to share an apartment in an "odd couple" sitcom? (*) Apparently I'm the "Kramer" of this...
  • Fabulous Adventures In Coding

    Out parameters and LINQ do not mix

    • 28 Comments
    I am back from my annual vacation in beautiful southwestern Ontario; before I get into the subject of today's post, check out this shot I took with my Windows Phone camera from the plane on the trip home. We are at 37000 feet, just outside of Billings...
Page 1 of 1 (5 items)