string s1=String.Empty;
-->This is a read-only field actually assigned to a constant.
-->String.Empty creates no object,
string s2="";
--> "" is an immediate constant, (created every time you place it in the code).
--> "" creates an object
No comments:
Post a Comment