Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.TagHelpers/EnumForSelectTagHelper.cs
/// <summary>
///     Return the actual enum type for generating the list.
/// </summary>
/// <returns></returns>
Return the actual enum type for generating the list.
Return the actual enum type for generating the list .
protected override Type GetEnumType()
		{
			if (EnumFor == null)
				throw new InvalidOperationException(
					$"The expression for `{EnumForAttributeName}` attribute cannot be null.");
			if (!EnumFor.Metadata.IsEnum)
				throw new InvalidOperationException(
					$"The expression type for `{EnumForAttributeName}` attribute is not a valid enum type nor a nullable enum type.");
			return EnumFor.Metadata.UnderlyingOrModelType;
		}
protected override Type GetEnumType ( ) { if ( EnumFor == null ) throw new InvalidOperationException ( $" The expression for ` { EnumForAttributeName } ` attribute cannot be null. " ) ; if ( ! EnumFor . Metadata . IsEnum ) throw new InvalidOperationException ( $" The expression type for ` { EnumForAttributeName } ` attribute is not a valid enum type nor a nullable enum type. " ) ; return EnumFor . Metadata . UnderlyingOrModelType ; }
Return the actual enum type for generating the list.
Return the actual enum type for generating the list .
None