Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public ReflectGroup this[string key]
 {
     get
     {
         // Repository
         return(_repository.GetValue(key));
     }
 }