Monday 15 September 2014

c# - Brokered Windows Runtime Component - System.Decimal -



c# - Brokered Windows Runtime Component - System.Decimal -

i receiving compiler error:

"method xxx has parameter value of type "system.decimal". "system.decimal" not valid windows runtime must homecoming windows runtime types."

is there anyway can utilize decimal? or should store value cents in integer?

i found easiest solution store cents in integer.

i believe may not work currencies in world concerned dollars not issue in particular scenario.

an alternative implement "money" pattern - http://martinfowler.com/eaacatalog/money.html

c# .net windows-runtime decimal enterprise

No comments:

Post a Comment