• Sam Ng's Blog

    Virtual Events in C#

    • 3 Comments
    Technorati Tags: Events One of the things that the language designers considered when designing the C# language was the ability to notify external callers of certain events happening. To solve this problem, they (surprise surprise) introduced the event...
  • Sam Ng's Blog

    Local variable scoping in C#

    • 7 Comments
    In my previous post, Compiler-generated scopes for local variable declarations , I briefly touched on the issue of multiple meanings applied to the same name. In this post, I'll aim to flush out the compiler's rules with regards to binding names in their...
  • Sam Ng's Blog

    Compiler-generated scopes for local variable declarations

    • 6 Comments
    I was tasked with understanding and fixing a bug on error reporting with foreach iteration variables the other day, and it got me thinking about local variable scoping rules in C# in general. First, the bug. The Bug Consider the following code: class...
  • Sam Ng's Blog

    Another compiler dev

    • 0 Comments
    Hi there. My name is Sam Ng, and I'm a developer on the C# compiler team. This here's my little outlet of random stuff that I think about, and things that I learn as I dig deeper into the wonderful world of software. Who am I? I'm currently a developer...
Page 1 of 1 (4 items)