-
My current project uses a double data type for its values and i have raised a suggestion to convert it to decimal data type instead. I remember that it is recommended to use decimal over double for financial applications because decimal data types have greater significant digits compared to floating...
-
The @ (at) sign in .NET is used for verbatim strings. When you're tired of dealing with escape characters particularly for filenames, you make use of it: [code language="C#"] string filename = @"C:\joeycalisay\projects\" as compared to string filename = "C:\\joeycalisay\\projects\\" [/code] Do you know...
-
I used to multiply a numeric number to -1 just to get its additive inverse (negative value for positive numbers) and I found out that the (-) operator does it implicitly. int value = 10 int negativeValue = value * -1 int negativeValueAlso = -value
-
I’ve read this excellent article on Arrays of Jeffrey Richter from Wintellect at MSDN here and there are a number of good points in coding, the one I love most is the section on Passing and Returning Arrays . If you always design your methods so that they return arrays with zero elements instead of null...