diff Implab/Parsing/EnumAlphabet.cs @ 156:97fbbf816844 v2

Promises: SignalXXX methods merged into SignalHandler method. Components: RunnableComponent In progress
author cin
date Mon, 15 Feb 2016 04:22:15 +0300
parents 653c4e04968b
children 130781364799
line wrap: on
line diff
--- a/Implab/Parsing/EnumAlphabet.cs	Fri Feb 12 16:24:24 2016 +0300
+++ b/Implab/Parsing/EnumAlphabet.cs	Mon Feb 15 04:22:15 2016 +0300
@@ -1,11 +1,9 @@
-using Implab;
-using System;
+using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Globalization;
 using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Diagnostics.CodeAnalysis;
 
 namespace Implab.Parsing {
     /// <summary>
@@ -13,10 +11,11 @@
     /// </summary>
     /// <typeparam name="T">Тип перечислений</typeparam>
     public class EnumAlphabet<T> : AlphabetBase<T> where T : struct, IConvertible {
+        [SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
         static readonly T[] _symbols;
         static readonly EnumAlphabet<T> _fullAlphabet;
 
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
+        [SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
         static EnumAlphabet() {
             if (!typeof(T).IsEnum)
                 throw new InvalidOperationException("Invalid generic parameter, enumeration is required");