public ReflectGroup GetValue(string groupName) { #region Contracts if (string.IsNullOrEmpty(groupName) == true) { throw new ArgumentNullException(); } #endregion lock (_syncRoot) { // Cache if (_cacheGroupName == groupName) { return(_cacheGroupInstance); } _cacheGroupName = groupName; _cacheGroupInstance = _repository.GetValue(groupName); // Return return(_cacheGroupInstance); } }
public ReflectGroup this[string key] { get { // Repository return(_repository.GetValue(key)); } }