What is the difference between Convert.toString and .toString() method ?
.NET INTERVIEW QUESTIONS - What is the difference between Convert.toString and .toString() method ?
Consider this code.
int i =0;
We can convert the integer “i” using “i.ToString()” or “Convert.ToString” so what’s the difference. The basic difference between them is “Convert” function handles NULLS while “i.ToString()” does not it will throw a NULL reference exception error. So as good coding practice using “convert” is always safe.
2010-05-04, 4972👍, 0💬
How do we host a WCF service in IIS? Note: - The best to know how to host a WCF in IIS is by doing a...
How can we suppress a finalize method? GC.SuppressFinalize ()
How to convert a Unix timestamp to a Win32 FILETIME or SYSTEMTIME? The following function converts a...
Are risk constant through out the project ? * Never say that risk is high through out the project. R...
Can event’s have access modifiers ? Event’s are always public as they are meant to serve every one r...