comparison Implab/Parsing/EnumAlphabet.cs @ 158:130781364799 v2

refactoring, code cleanup
author cin
date Thu, 18 Feb 2016 14:34:02 +0300
parents 97fbbf816844
children
comparison
equal deleted inserted replaced
157:948c015a9011 158:130781364799
8 namespace Implab.Parsing { 8 namespace Implab.Parsing {
9 /// <summary> 9 /// <summary>
10 /// Алфавит символами которого являются элементы перечислений. 10 /// Алфавит символами которого являются элементы перечислений.
11 /// </summary> 11 /// </summary>
12 /// <typeparam name="T">Тип перечислений</typeparam> 12 /// <typeparam name="T">Тип перечислений</typeparam>
13 public class EnumAlphabet<T> : AlphabetBase<T> where T : struct, IConvertible { 13 public class EnumAlphabet<T> : IndexedAlphabetBase<T> where T : struct, IConvertible {
14 [SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")] 14 [SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
15 static readonly T[] _symbols; 15 static readonly T[] _symbols;
16 static readonly EnumAlphabet<T> _fullAlphabet; 16 static readonly EnumAlphabet<T> _fullAlphabet;
17 17
18 [SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")] 18 [SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]