Browse by Tags

Tagged Content List
  • Blog Post: Calling constructors in arbitrary places

    C# lets you call another constructor from a given constructor, but only before the body of the calling constructor runs: public C(int x) : this(x, null) { // … } public C(int x, string y) { // … } Why can you call another constructor at the beginning of a constructor block, but not at the end of...
  • Blog Post: Absence of evidence is not evidence of absence

    Today, two more subtly incorrect myths about C#. As you probably know, C# requires all local variables to be explicitly assigned before they are read, but assumes that all class instance field variables are initially assigned to default values. An explanation of why that is that I sometimes hear is...
Page 1 of 1 (2 items)