Click or drag to resize

EnumerationParseT Method (String)

Gives a value of enumeration (Parse)

Namespace:  SOWIData.Helper
Assembly:  SOWIData.Helper (in SOWIData.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static T Parse<T>(
	string pValue
)

Parameters

pValue
Type: SystemString
string value of enumeration

Type Parameters

T
enumeration type

Return Value

Type: T

[Missing <returns> documentation for "M:SOWIData.Helper.Enumeration.Parse``1(System.String)"]

Examples
This example checked variable lPanel known in enumeration
string lPanel = "Address";
try
{
    pItem.Panel = SOWIData.Helper.Enumeration.Parse<easyPlanData.Panels>(lPanel);
}
catch
{
    // what to do if unknown?
}
See Also