source/R5T.NetStandard.Types/Code/Helpers/EnumHelper.cs
/// <summary>
/// Gets a message indicating that the input string representation of an enumeration value was not recognized among the string representations of a possible values of the <typeparamref name="TEnum"/> enumeration.
/// Note: This legacy method that restricts <typeparamref name="TEnum"/> as a struct, instead of an <see cref="Enum"/>, is provided since <see cref="Enum.TryParse{TEnum}(string, out TEnum)"/> restricts on struct instead of <see cref="Enum"/>.
/// </summary>
Gets a message indicating that the input string representation of an enumeration value was not recognized among the string representations of a possible values of the  enumeration.
Note: This legacy method that restricts  as a struct, instead of an , is provided since  restricts on struct instead of .
Gets a message indicating that the input string representation of an enumeration value was not recognized among the string representations of a possible values of the enumeration . Note : This legacy method that restricts as a struct instead of an is provided since restricts on struct instead of .
public static string UnrecognizedEnumerationValueMessageLegacy<TEnum>(string value)
            where TEnum : struct 
        {
            var output = $@"Unrecognized enumeration value string '{value}' for enumeration {typeof(TEnum).FullName}";
            return output;
        }
public static string UnrecognizedEnumerationValueMessageLegacy < TEnum > ( string value ) where TEnum : struct { var output = $@" Unrecognized enumeration value string ' { value } ' for enumeration  { typeof ( TEnum ) . FullName } " ; return output ; }
Gets a message indicating that the input string representation of an enumeration value was not recognized among the string representations of a possible values of the  enumeration.
Gets a message indicating that the input string representation of an enumeration value was not recognized among the string representations of a possible values of the enumeration .
// Must be a struct for the moment, since Enum.TryParse<TEnum> requires TEnum to be a struct.
value
string