Files
spark/src/client/spark_api/Co2/NativePriceSizeExtensions.cs
T
John Colvin c779b31a90 refactor: Clean up [csharp] co2 classes
* Move all [non-nested] classes/structs into own files
* Sort members
* Fix naming convention violations
* Use new lang feats
* Run formatter
2022-04-19 11:42:40 -04:00

8 lines
300 B
C#

namespace mbts.co2 {
static class NativePriceSizeExtensions {
public static NativePriceSize with(
this NativePriceSize nps, uint? direct_size = null, uint? implied_size = null) =>
new(nps.int_price, direct_size ?? nps.direct_size, implied_size ?? nps.implied_size);
}
}