共用方式為


EnumNameAttribute.FromName<T>(String) Method

Definition

public static T FromName<T> (string name);
static member FromName : string -> 'T
Public Shared Function FromName(Of T) (name As String) As T

Type Parameters

T

Parameters

name
String

Returns

T

Applies to