Empty String
Checking if a string is empty or not is a basic programming need. The effective way to check if a string is empty or not is to use the Length property of the string class, instead of using null or comparing with " " string.
string
String Concatenation
Whenever you modify a String it returns a new string as the result. Creating many String objects might degrade the performance of your program. You can avoid creating a new instance of String by using the StringBuilder class.
Say you want to concatenate two strings. Here is the traditional way -
StringBuilder MyStrBuilder =
Comparing String
Use string.Equals method to compare two strings.