Last Updated: February 25, 2016
·
684
· carlosnasillo

Null coalescing operator for collection instantiation

private IList<Foo> _foo;

public IList<Foo> ListOfFoo 
     { get { return _foo ?? (_foo = new List<Foo>()); } }