StringExtensionParse(String, Type, NullableNumberStyles, IFormatProvider, NullableDateTimeStyles) Method
Converts value to the target type.
Namespace: FileHold.LibraryManager.ExtensionsAssembly: FileHold.LibraryManager (in FileHold.LibraryManager.dll) Version: 17.2.0.0
public static Object Parse(
this string value,
Type targetType,
NumberStyles? numberStyles = null,
IFormatProvider formatProvider = null,
DateTimeStyles? dateTimeStyles = null
)
- value String
- The value to be checked for conversion.
- targetType Type
- The target type.
- numberStyles NullableNumberStyles (Optional)
- The number stypes.
- formatProvider IFormatProvider (Optional)
- The format provider.
- dateTimeStyles NullableDateTimeStyles (Optional)
- The date time styles.
ObjectTrue if the value can be converted to the target type; otherwise, false.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).