예제 #1
0
        /// <summary>
        /// Gets the specified file name.
        /// </summary>
        /// <param name="fileName">Name of the file.</param>
        /// <returns></returns>
        public static LocalStates Get(string fileName)
        {
            lock (_LocalStatesCollection)
            {
                var rValue = (LocalStates)_LocalStatesCollection[fileName.ToLower()];
                if (rValue == null)
                {
                    rValue = new LocalStates(fileName);
                    _LocalStatesCollection[fileName.ToLower()] = rValue;
                }

                return(rValue);
            }
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ValueListStates"/> class.
 /// </summary>
 /// <param name="states">The states.</param>
 /// <param name="section">The section.</param>
 public ValueListStates(LocalStates states, string section)
 {
     _states  = states;
     _section = section;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ValueEnumListStates"/> class.
 /// </summary>
 /// <param name="states">The states.</param>
 /// <param name="section">The section.</param>
 public ValueEnumListStates(LocalStates states, string section)
 {
     _valueStates = new ValueListStates(states, section);
 }