src/GenFx/EnumHelper.cs
/// <summary>
/// Returns an error message for an invalid enum.
/// </summary>
/// <param name="enumType">Type of the enum.</param>
/// <returns>Invalid enum error message.</returns>
Returns an error message for an invalid enum.
Returns an error message for an invalid enum .
public static string GetInvalidEnumMessage(Type enumType)
        {
            if (enumType == null)
            {
                throw new ArgumentNullException(nameof(enumType));
            }
            string enumValues = Enum.GetNames(enumType)
                .Aggregate((val1, val2) => val1 + ", " + val2);
            return StringUtil.GetFormattedString(
                Resources.ErrorMsg_InvalidEnum, enumType.Name, enumValues);
        }
public static string GetInvalidEnumMessage ( Type enumType ) { if ( enumType == null ) { throw new ArgumentNullException ( nameof ( enumType ) ) ; } string enumValues = Enum . GetNames ( enumType ) . Aggregate ( ( val1 , val2 ) => val1 + " " + val2 ) ; return StringUtil . GetFormattedString ( Resources . ErrorMsg_InvalidEnum , enumType . Name , enumValues ) ; }
Returns an error message for an invalid enum.
Returns an error message for an invalid enum .
Invalid enum error message.
Invalid enum error message .
enumType
Type
Type of the enum.
Type of the enum .