static UnitAbbreviationsCache()
 {
     Default = new UnitAbbreviationsCache();
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Create a parser using the given unit abbreviations cache.
 /// </summary>
 /// <param name="unitAbbreviationsCache"></param>
 public UnitParser(UnitAbbreviationsCache unitAbbreviationsCache)
 {
     _unitAbbreviationsCache = unitAbbreviationsCache ?? UnitAbbreviationsCache.Default;
 }
Exemplo n.º 3
0
 public QuantityParser(UnitAbbreviationsCache unitAbbreviationsCache)
 {
     _unitAbbreviationsCache = unitAbbreviationsCache ?? UnitAbbreviationsCache.Default;
     _unitParser             = new UnitParser(_unitAbbreviationsCache);
 }