This class inherits from List and implements indexing with a string for lookup in the list
More...
|
BaseQuantity | ContainsGroupName (string name) |
|
BaseQuantity | MatchUnitAndConvert (string name, ref double valToConvert) |
| Searches the list of groups for the passed name and returns it if it finds it otherwise it assumes a unit expression was passed and tries to construct a DerivedGroup out of it. If the unit that was passed is not the same as the default for the matched group then it converts valToConvert into the default unit from the passed unit. Ex. name = "Short Tons" val = 1 val is converted to the default for the found group of mass so it becomes 907184 More...
|
|
This class inherits from List and implements indexing with a string for lookup in the list
BaseQuantity Greet.UnitLib.QuantityList.MatchUnitAndConvert |
( |
string |
name, |
|
|
ref double |
valToConvert |
|
) |
| |
Searches the list of groups for the passed name and returns it if it finds it otherwise it assumes a unit expression was passed and tries to construct a DerivedGroup out of it. If the unit that was passed is not the same as the default for the matched group then it converts valToConvert into the default unit from the passed unit. Ex. name = "Short Tons" val = 1 val is converted to the default for the found group of mass so it becomes 907184
- Parameters
-
- Returns
new BaseQuantity Greet.UnitLib.QuantityList.this[string name] |
|
get |
Returns the group which name matches the passes string or if the name was a unit then it returns the units UnitGroup
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- C:/Users/ddieffenthaler/Desktop/SVN/source/greet-dev/main/Lib/UnitLib/QuantityList.cs