Exemple #1
0
 /// <summary>
 /// Reads an Enum of type <typeparamref name="T"/> using the Enum's value instead of the name.
 /// </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 ReadEnumValue <T>(string name) where T : struct, IComparable, IConvertible, IFormattable
 {
     return(_reader.ReadEnumValue <T>(name));
 }