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...
-
Security role describe difference between different users in dynamic crm i.e. user is System admin, salesperson etc. Its use to control a...
-
Get formcontext from execution Context var formContext = executionContext.getFormContext(); Show/Hide field //Show formContext.getControl(...
No comments:
Post a Comment