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...
-
Get formcontext from execution Context var formContext = executionContext.getFormContext(); Show/Hide field //Show formContext.getControl(...
-
Using Access tokens to connect with Dynamics 365 In this blog I am going to explain how we can connect to Dynamics 365 using Az...
No comments:
Post a Comment