示例#1
0
		private static void Add (BaseEnum value)
		{
			Type t = value.GetType();
			List<BaseEnum> valueList = null;
			if (_values.TryGetValue(t, out valueList) == false)
			{
				valueList = new List<BaseEnum>();
				_values.Add(t, valueList);
			}
			valueList.Add(value);
		}
示例#2
0
        private static void Add(BaseEnum value)
        {
            Type            t         = value.GetType();
            List <BaseEnum> valueList = null;

            if (_values.TryGetValue(t, out valueList) == false)
            {
                valueList = new List <BaseEnum>();
                _values.Add(t, valueList);
            }
            valueList.Add(value);
        }