string.Empty Example and Issues in C# written by Sam Allen
Problem. You are wondering how to use string.Empty and how it is different from an empty string literal constant "". There is a subtle different, and it can be significant in some scenarios, in that it changes the meaning of your program. Solution. Here we see how to use string.Empty, and then look into its implementation, finally seeing an example of how it can produce less effective code.
For more information click here http://dotnetperls.com/Content/string-Empty.aspx
No comments:
Post a Comment