Esempio n. 1
0
 /// <summary>
 /// Cast TEnum to <see cref="uint"/>
 /// </summary>
 /// <param name="enum"></param>
 /// <param name="defaultVal"></param>
 /// <typeparam name="TEnum"></typeparam>
 /// <returns></returns>
 public static uint CastToUInt32 <TEnum>(this TEnum @enum, uint defaultVal = default) where TEnum : struct => NumericConv.EnumToUInt32(@enum, defaultVal);