====== Lazy initialization ====== static readonly object padlock = new object(); private DataSet _dataSet; public DataSet DataSet { get { lock (padlock) { if (_dataSet == null) { _dataSet = new ...; } } return _dataSet; } }