What is the difference between string.Empty and ""?Which one is best to use?
The difference between string.Empty and "" is very small. String.empty will not create any object while "" will create a new object in the memory for the checking. Hence string.empty is better in memory management.
No comments:
Post a Comment