I am use to using the decimal data type like this:
decimal Cost = 30M; This initialises the decimal with £30 (£ is in the context of my application). I am planning to use a type alias for Decimal in my application like this:
using Cost = System.Decimal I believe I have to use the object rather than the primitive type when using a type alias. Please let me know if that is not correct?
Also I have noticed that I cannot do this:
Decimal cost = new Decimal(30M); I have to do this instead:
Decimal cost = new Decimal(30); Is the initialisation code above suitable for a currency?
new Decimal? Why would you want to use aDecimalconstructor? Also, why alias a built-in type?