Here is the listing of C# programming examples on Strings.
1. C# Examples on Simple Operations on Strings
The following C# programs joins two string which is called concatenation. The other programs in the section produces the marksheet for the students of a class, prints the abbreviation for the given text, prints the date in the given string, displays the substrings that the string contains and evaluates the sum of all the digits in a string.
2. C# Examples on Reversal, Padding and Trimming Operations
The C# programs in this section performs reversal of a string without using the reverse function. It adds characters to the end of a string which is called padding. It deletes the specified characters from the string which is called the trimming operation. The program also splits the given string into various parts which is called the splitter. The remaining program calculates the number of characters (length) of the string.
3. C# Examples on Replacement and Conversion Operations
The C# programs in this section performs the replace operation where it replaces one string by another and also replaces a character by a string. The remaining program in the section converts the uppercase characters into lowercase and vice versa.
C# Program to Replace String in String
C# Program to Find the Frequency of the Word “is” in a given Sentence
C# Program to Convert Upper case to Lower Case
C# Program to Replace a Character with the String
4. C# Examples on Advanced Operations on Strings
The C# programs in this section perform the count operation where in it counts the number of vowels and consonants in a string and also displays the number of lines it has counted. And the remaining programs in the section perform cryptographic operations like encryption and decryption.
C# Program to Count number of Vowels and consonants from a given String
C# Program to Illustrate Binary Writer
C# Program to Randomly Generate Strings
C# Program to Encrypt/Decrypt using Rijndael Key
C# Program to Count Lines in a String