Skip to content

M_CommandLine_Core_TypeConverter_ToEnum

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

TypeConverter.ToEnum Method

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

private static Object ToEnum(
	this string value,
	Type conversionType,
	bool ignoreValueCase
)

VB

<ExtensionAttribute>
Private Shared Function ToEnum ( 
	value As String,
	conversionType As Type,
	ignoreValueCase As Boolean
) As Object

C++

private:
[ExtensionAttribute]
static Object^ ToEnum(
	String^ value, 
	Type^ conversionType, 
	bool ignoreValueCase
)

F#

[<ExtensionAttribute>]
private static member ToEnum : 
        value : string * 
        conversionType : Type * 
        ignoreValueCase : bool -> Object 

Parameters

 

value
Type: System.String
conversionType
Type: System.Type
ignoreValueCase
Type: System.Boolean

Return Value

Type: Object

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 Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

TypeConverter Class
CommandLine.Core Namespace

Clone this wiki locally