Transformer.NET.Net.GetTokenName C# (CSharp) Method

GetTokenName() private static method

private static GetTokenName ( Type tokenType ) : string
tokenType System.Type
return string
        private static string GetTokenName(Type tokenType)
        {
            object[] attrs = tokenType.GetCustomAttributes(typeof(TagNameAttribute), true);
            return ((TagNameAttribute)attrs[0]).Name;
        }