Extensions.ToEnum<T> Method CTCT Wrapper Documented Class Library
Converts a string to its enum representation.

Namespace: CTCT.Util
Assembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public static T ToEnum<T>(
	this string s
)
where T : struct, new(), IConvertible

Parameters

s
Type: System.String
String to convert.
Type Parameters

T
Enum type.

Return Value

Returns the enum value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also