Exemplo n.º 1
0
 /// <summary>
 /// Cast TEnum to <see cref="long"/>
 /// </summary>
 /// <param name="enum"></param>
 /// <param name="defaultVal"></param>
 /// <typeparam name="TEnum"></typeparam>
 /// <returns></returns>
 public static long CastToInt64 <TEnum>(this TEnum @enum, long defaultVal = default) where TEnum : struct => NumericConv.EnumToInt64(@enum, defaultVal);