String.Empty will not create any object of String while “ “ will create a new object in the memory. .Length == 0 is the fastest option , but .Empty makes slightly cleaner code. String.Empty is read-only field while “ “ is compile time constant.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.