C# Type suffix for decimal -


I do not know what I mean trying to achieve, what the correct words mean for it Please be posted online so please if it is, please be there.

OK, so basically I have this way.

  Public stable tee iron & lt; T & gt; (IDataReader dr, string name, T tap valve) {Return helpers. Isabelle (Dr., Dr. Gate Ordinal (name), tap valve); } Public Static T Isle & Lt; T & G; (Idta reader dr, int 32 index, t tap value) {if (Dr. ISDNBL (index)) {return tap valve; } Other {Return (T) Dr. Gate value (index); }}   

is being called as and the error that I am getting "changed from double to decimal can not be done" .

Now I know that I can use the decimals. Zero But is there any way that I can just go 0dec or something similar? I hate those long shortcut values ​​(especially when you are calling a 20-parameter constructor).

0 m is how do you say (decimal) 0 Because m is the suffix which means decimal .

for <3> U for unsigned , and l for long . They can be either upper- or lower-case and can be combined with u to either ulong for.

Although the suffixes are not case-sensitive, keep in mind what this is called in the C # language specification, section 2.4.4.2:

As a matter of style, It is suggested that ???? La Una Instead â € ??? Lâ € o When typed words are long, it's easy to confuse the letter ??? With digits- "1"

Comments