using System.Collections.Generic; namespace Neo.Afx.Services { public partial class Service { readonly object _propertyLock = new object(); Dictionary _settings; public Dictionary Settings { get { lock(_propertyLock) { if(_settings == null) { _settings = new Dictionary(); foreach(var serviceSetting in ServiceSettings) { _settings.Add(serviceSetting.SettingKey, serviceSetting.SettingValue); } } return _settings; } } } } }