Exemplo n.º 1
0
 /// <summary>
 /// Converts the value of the specified enumeration to a signed byte.
 /// </summary>
 /// <typeparam name="T">An enumeration type</typeparam>
 /// <param name="value">An enumeration value</param>
 /// <returns>An 8-bit unsigned integer that is cast equivalent to the enumeration value</returns>
 public static sbyte ToSByte <T>(T value) where T : struct, E
 => EnumCompiledCache <T> .ToSByte(value);