UomMeasureTTryParse Method (String, T) |
Converts a string representation of a number to given unit of measure.
A return value indicates whether the conversion succeeded or failed.
Namespace: FDF.CommonAssembly: FDF.Common (in FDF.Common.dll) Version: 3.0.0.0
Syntax public bool TryParse(
string value,
T unit
)
Public Function TryParse (
value As String,
unit As T
) As Boolean
public:
bool TryParse(
String^ value,
T unit
)
member TryParse :
value : string *
unit : 'T -> bool
Parameters
- value
- Type: SystemString
- unit
- Type: T
Return Value
Type:
BooleanRemarks See Also