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