¡@

Home 

c# Programming Glossary: mynumber

Difference between eager operation and short-circuit operation? (| versu || and & versu &&)

http://stackoverflow.com/questions/4838171/difference-between-eager-operation-and-short-circuit-operation-versu-and

in other applications can be the better choice. If myNumber is of type int u could have something like if myNumber null.. If myNumber is of type int u could have something like if myNumber null myNumber.Value 7 and this would only evaluate myNumber.. of type int u could have something like if myNumber null myNumber.Value 7 and this would only evaluate myNumber null at first..

Using String Format to show decimal upto 2 places or simple integer

http://stackoverflow.com/questions/6951335/using-string-format-to-show-decimal-upto-2-places-or-simple-integer

being something like public static string DoFormat double myNumber var s string.Format 0 0.00 myNumber if s.EndsWith 00 return.. string DoFormat double myNumber var s string.Format 0 0.00 myNumber if s.EndsWith 00 return int myNumber .ToString else return.. string.Format 0 0.00 myNumber if s.EndsWith 00 return int myNumber .ToString else return s Not elegant but working for me in similar..