src/openSourceC.DotNetLibrary.Data/Data/DbParamsBase.cs
/// <summary>
///     Return the value of a parameter that is of a <typeparamref name="TEnum"/> type.
/// </summary>
/// <typeparam name="TEnum">The enum type to return.</typeparam>
///	<param name="parameterName">The name of the parameter.</param>
/// <returns>Returns the value of the parameter as a nullable <typeparamref name="TEnum"/>.</returns>
Return the value of a parameter that is of a  type.
Return the value of a parameter that is of a type .
public TEnum? GetEnum<TEnum>(string parameterName) where TEnum : struct, Enum
		{
			try { return (TEnum?)GetValue(parameterName); }
			catch (InvalidCastException ex) { throw new InvalidCastException(string.Format(SR.Type_mismatch_on_parameter, NormalizeParameterName(parameterName)), ex); }
		}
public TEnum ? GetEnum < TEnum > ( string parameterName ) where TEnum : struct , Enum { try { return ( TEnum ? ) GetValue ( parameterName ) ; } catch ( InvalidCastException ex ) { throw new InvalidCastException ( string . Format ( SR . Type_mismatch_on_parameter , NormalizeParameterName ( parameterName ) ) , ex ) ; } }
Return the value of a parameter that is of a  type.
Return the value of a parameter that is of a type .
Returns the value of the parameter as a nullable .
Returns the value of the parameter as a nullable .
parameterName
string
The name of the parameter.
The name of the parameter .
typeparam
The enum type to return.
The enum type to return .