[]
public static bool TryParse(string s, out double value, out UnitTypeEnum units)
Type | Name | Description |
---|---|---|
string | s | The string to parse. |
double | 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)
Type | Name | Description |
---|---|---|
string | s | The string to parse. |
Unit | unit | OUT: Unit structure. |
Type | Description |
---|---|
bool | True if the conversion was successfull, false otherwise. |