[]
public static bool TryParse(string s, out float value, out UnitTypeEnum units)
Public Shared Function TryParse(s As String, ByRef value As Single, ByRef units As UnitTypeEnum) As Boolean
Type | Name | Description |
---|---|---|
string | s | The string to parse. |
float | value | OUT: value of Unit structure. |
UnitTypeEnum | units | OUT: units of Unit structure. |
Type | Description |
---|---|
bool | A true if conversion was successfull. |
Parses a string and creates Unit structure.
public static bool TryParse(string s, out Unit unit)
Public Shared Function TryParse(s As String, ByRef unit As Unit) As Boolean
Type | Description |
---|---|
bool | True if the conversion was successfull, false otherwise. |