MindFusion.Wpf Pack Programmer's Guide
XmlConverter.ToEnum Method
See Also
 





Converts the specified string value to its corresponding enumeration member of the specified type.

Namespace: MindFusion.UI.Wpf
Assembly: MindFusion.UI.Wpf

 Syntax

C#  Copy Code

public static Object ToEnum (
    Type type,
    string s
)

Visual Basic  Copy Code

Public Shared Function ToEnum( _
    type As Type, _
    s As String _
) As Object

 Parameters

type

The type of the enumeration to convert to.

s

The string value to convert from.

 Return Value

A member of the specified enumeration that is deserialized from the specified string, possibly a null reference (Nothing in Visual Basic) if the deserialization failed.

 See Also

XmlConverter Members
XmlConverter Class
MindFusion.UI.Wpf Namespace