Ejemplo n.º 1
0
 protected override ushort GetUnitSubTypeFromString(string asString)
 {
     return(QuantityMetric.GetUnitSubTypeFromString(asString, GetRegularExpressionForSubUnit()));
 }
Ejemplo n.º 2
0
 protected override string GetRegularExpressionForSubUnit()
 {
     return(mRegularExpressionForSubUnit
            ?? (mRegularExpressionForSubUnit
                    = QuantityMetric.GetRegularExpressionForSubUnit($"({SubTypeToShortString}|m3)")));
 }