Pages

Wednesday 3 June 2015

Difference Between .ToString() and Convert.ToString()


 Today I am going to show u a basic Difference between .ToString() and Convert.ToString() If you declare a string variable and don't assign any value in C#. Then by default it take a blank or null value itself . in this case if u use .ToString() method then our program should throw null reference exception. and in Convert.ToString() our program doesn't throw any exception. bcoz by default it takes a blank value instead of null

No comments:

Post a Comment

Get or Update fields on form using JavaScript in Dynamics 365 v9

After Microsoft released v9.0 of Microsoft Dynamics 365, Xrm.page became deprecated that it have been replaced by ExecutionContext.getFor...