FileHold 17.2 API Documentation
C#
Show/Hide TOC
String
Extension
Can
Parse(String, Type) Method
Determines whether the specified value can be converted to the target type.
Definition
Namespace:
FileHold.LibraryManager.Extensions
Assembly:
FileHold.LibraryManager (in FileHold.LibraryManager.dll) Version: 17.2.0.0
C#
Copy
public
static
bool
CanParse
(
this
string
value
,
Type
targetType
)
Parameters
value
String
The value to be checked for conversion.
targetType
Type
The target type.
Return Value
Boolean
True if the value can be converted to the target type; otherwise, false.
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
StringExtension Class
CanParse Overload
FileHold.LibraryManager.Extensions Namespace
In This Article
Definition
Parameters
Return Value
Usage Note
See Also