Units of measure in C# - almost

后端 未结 12 1283
再見小時候
再見小時候 2020-11-27 10:29

Inspired by Units of Measure in F#, and despite asserting (here) that you couldn\'t do it in C#, I had an idea the other day which I\'ve been playing around with.

         


        
12条回答
  •  庸人自扰
    2020-11-27 11:10

    Why not use CodeDom to generate all possible permutations of the units automatically? I know it's not the best - but I will definitely work!

提交回复
热议问题