Parse<T>(string,bool) Method

Summary
Parses the specified string to an enumeration allowing for a case insensitive comparison.
Syntax
C#
C++
public static T Parse<T>( 
   this string value, 
   bool ignoreCase 
) 
vb[VB Syntax] 
<ExtensionAttribute()> 
Public Overloads Shared Function Parse(Of T)( _ 
   ByVal _value_ As String, _ 
   ByVal _ignoreCase_ As Boolean _ 
) As T 
[ExtensionAttribute()] 
public: 
static _T^_ Parsegeneric<typename T> 
(  
   String^ value, 
   bool ignoreCase 
)  

Parameters

value
The string to parse.

ignoreCase
true to ignore case during string comparison.

Type Parameters

T
The enumeration type

Return Value

The enumeration value that corresponds to the string.

Requirements

Target Platforms

Help Version 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.