Exemplo n.º 1
0
 /// <summary>
 /// Reads an Enum of type <typeparamref name="T"/> using the Enum's name instead of the value.
 /// </summary>
 /// <typeparam name="T">The Type of Enum.</typeparam>
 /// <param name="name">Unique name of the value to read.</param>
 /// <returns>Value read from the reader.</returns>
 public T ReadEnumName <T>(string name) where T : struct, IComparable, IConvertible, IFormattable
 {
     return(_reader.ReadEnumName <T>(name));
 }