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
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
Subscribe to:
Post Comments (Atom)
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...
-
After Microsoft released v9.0 of Microsoft Dynamics 365, Xrm.page became deprecated that it have been replaced by ExecutionContext.getFor...
-
ASP.Net It is a framework developed by Microsoft on which we can develop new generation web sites using web forms(aspx), MVC, HTML, Javas...
-
Creating OData end point and get data in CRM using Virtual Entities A virtual entity is a definition of an entity in the Dyna...
No comments:
Post a Comment