public Person Teacher { get { return this.teacher ?? (this.teacher = new Teacher()); } }
if (teacher == null) // this is the part *before* the "??" coalescing operator { teacher = new Teacher(); // this is the part *after* the "??" coalescing operator } return teacher;
return teacher != null ? teacher : (teacher = new Teacher());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)