T
The enumeration type
Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Parse<T>(String,Boolean) Method
See Also 
Leadtools.Dicom.Common.Extensions Namespace > GeneralExtensions Class > Parse Method : Parse<T>(String,Boolean) Method



value
The string to parse.
ignoreCase
if set to true ignore case during string comparison.
value
The string to parse.
ignoreCase
if set to true ignore case during string comparison.
Parses the specified string to an enumeration allowing for a case insensitve comparison.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Overloads Public Shared Function Parse(Of T)( _
   ByVal value As String, _
   ByVal ignoreCase As Boolean _
) As T
Visual Basic (Usage)Copy Code
Dim value As String
Dim ignoreCase As Boolean
Dim value As T
 
value = GeneralExtensions.Parse(Of T)(value, ignoreCase)
C# 
[ExtensionAttribute()]
public static T Parse<T>( 
   string value,
   bool ignoreCase
)
C++/CLI 
[ExtensionAttribute()]
public:
static T^ Parsegeneric<typename T>
( 
   String^ value,
   bool ignoreCase
) 

Parameters

value
The string to parse.
ignoreCase
if set to true ignore case during string comparison.

Type Parameters

T
The enumeration type

Return Value

The enumeration value that corresponds to the string.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.Common requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features