News for hackers. Stuff that matters.
Re:How Can We Achieve Age Diversity in Silicon Valley? by briHass on Monday October 19, 2015 @02:00PM (#10414510)
It is actually the equivalent of a private backing field that is marked readonly.

  public class Person{

     private readonly string name;
 
     public Person(string name){
        this.name = name;
     }
  }

It's syntactical sugar that shaves a few lines of code off, particularly if you aren't setting values from parameters in the constructor and just want readonly values that are inherent to the class.

There are no comments on this comment yet.