PackageUtilities.SetStringValueFromConvertedEnum<T> Method

Definition

Returns a string from an enumeration value.

public:
generic <typename T>
 where T : value class static System::String ^ SetStringValueFromConvertedEnum(T enumValue, System::Globalization::CultureInfo ^ culture);
public static string SetStringValueFromConvertedEnum<T> (T enumValue, System.Globalization.CultureInfo culture) where T : struct;
static member SetStringValueFromConvertedEnum : 'T * System.Globalization.CultureInfo -> string (requires 'T : struct)
Public Function SetStringValueFromConvertedEnum(Of T As Structure) (enumValue As T, culture As CultureInfo) As String

Type Parameters

T

The enum type

Parameters

enumValue
T

The value of the enum.

culture
CultureInfo

Returns

Remarks

The type parameter used should be an enumeration for which there is a subtype of EnumConverter.

Applies to