Common Type Suffixes c#

Integer type suffixes are: U, L, UL, LU, u, l, ul, lu, Ul, uL, Lu, lU
where U/u = unsigned and L/l = long. Lowercase l is not recommended
unless you want to obfuscate your source code.

Real type suffixes are: F, D, M, f, d, m where F/f = float, D/d =

double. M/m = Decimal


e.g. return Product.Price * 0.9M 意味九折后的价格。return value is decimal


猜你喜欢

转载自blog.csdn.net/weixin_41269872/article/details/80385103