NodaMoney
NodaMoney copied to clipboard
Why Currency is a struct, not class?
Just wonder due to it hold a lot of fields, which will cause a large block of memory to copy whenever it got assigned a value.
I think it makes sense, as it's in many ways a value that will be used instead of a Decimal.
Seems like you misunderstood what I mean. I mean this one https://www.github.com/DynamicHands/NodaMoney/tree/master/src%2FNodaMoney%2FCurrency.cs, which is a struct to hold currency information.
Indeed I did misunderstand/misread. Yes, that's a good question.