src/openSourceC.DotNetLibrary.Data/Data/DbParamsBase.cs
/// <summary>
///		Return the value of a parameter that is of a 8-bit unsigned integer ranging in
///		value from 0 to 255.
/// </summary>
///	<param name="parameterName">The name of the parameter.</param>
///	<returns>Returns the value of the parameter as a nullable <see cref="byte"/>.</returns>
Return the value of a parameter that is of a 8-bit unsigned integer ranging in
value from 0 to 255.
Return the value of a parameter that is of a 8 - bit unsigned integer ranging in value from 0 to 255 .
public byte? GetByte(string parameterName)
		{
			try
			{
				object? obj = GetValue(parameterName);
				return (obj is decimal ? (byte?)(decimal?)obj : (byte?)obj);
			}
			catch (InvalidCastException ex) { throw new InvalidCastException(string.Format(SR.Type_mismatch_on_parameter, NormalizeParameterName(parameterName)), ex); }
		}
public byte ? GetByte ( string parameterName ) { try { object ? obj = GetValue ( parameterName ) ; return ( obj is decimal ? ( byte ? ) ( decimal ? ) obj : ( byte ? ) obj ) ; } 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 8-bit unsigned integer ranging in
value from 0 to 255.
Return the value of a parameter that is of a 8 - bit unsigned integer ranging in value from 0 to 255 .
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 .