Click or drag to resize
ConvertHelperToEnumT Method
转换为枚举

Namespace: Adf
Assembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax
public static T ToEnum<T>(
	string enumName,
	T defaultValue,
	bool ignoreCase = true
)
where T : struct, new()

Parameters

enumName
Type: SystemString

[Missing <param name="enumName"/> documentation for "M:Adf.ConvertHelper.ToEnum``1(System.String,``0,System.Boolean)"]

defaultValue
Type: T

[Missing <param name="defaultValue"/> documentation for "M:Adf.ConvertHelper.ToEnum``1(System.String,``0,System.Boolean)"]

ignoreCase (Optional)
Type: SystemBoolean

[Missing <param name="ignoreCase"/> documentation for "M:Adf.ConvertHelper.ToEnum``1(System.String,``0,System.Boolean)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Adf.ConvertHelper.ToEnum``1(System.String,``0,System.Boolean)"]

Return Value

Type: T

[Missing <returns> documentation for "M:Adf.ConvertHelper.ToEnum``1(System.String,``0,System.Boolean)"]

See Also