
C# String (With Examples) - Programiz
In C#, a string is a sequence of characters. For example, "hello" is a string containing a sequence of characters 'h', 'e', 'l', 'l', and 'o'. We use the string keyword to create a string. For example, Here, we have created a string named str and assigned the text "C# Programming". We use double quotes to represent strings in C#.
Strings - C# | Microsoft Learn
Nov 22, 2024 · Learn about strings in C# programming. See information on declaring and initializing strings, the immutability of string objects, and string escape sequences.
C# Strings - W3Schools
A string in C# is actually an object, which contain properties and methods that can perform certain operations on strings. For example, the length of a string can be found with the Length property: Example
String in C# with Examples - Dot Net Tutorials
In C#, the string is an object of the String class that represents a sequence of characters. We can perform many operations on strings such as concatenation, comparison, getting substring, search, trim, replacement, etc.
C# Strings - GeeksforGeeks
Mar 4, 2025 · In C#, a string is a sequence of Unicode characters or an array of characters. The range of Unicode characters will be U+0000 to U+FFFF. The array of characters is also termed as the text. So the string is the representation of the text.
String in C# - A Complete Tutorial On C# Strings - C# Corner
In C#, a string is a sequence of characters that represents text. In code, a string is declared using the string keyword, followed by a variable name and an optional initial value. Here's an example: string greeting = "Hello, world!"; In this example, greeting is a variable of type string that has an initial value of "Hello, world!".
C# String Class - GeeksforGeeks
Mar 13, 2025 · Example: Creating a string using String class constructor String (Char*, Int32) and String ( []). In C# the String class has two properties. Chars [Int32]: Gets the Char object at a specified position in the current String object. Length: Gets the number of characters in the current String object. Example: Using the Properties of string class.
C# String Functions and Properties
In C# programming, string is another kind of data type that represents Unicode Characters. It is the alias of System.String, however, you can also write System.String instead of a string. It is the sequence of character in which each character is a Unicode character.
C# String Tutorial – String Methods With Code Examples
Apr 1, 2025 · In This Tutorial, We Will Discuss Some of The Most Commonly Used String Methods in C#: In C#, the string is represented as a sequence of characters. It is an object of System.String class. C# allows the users to perform different operations on a string such as a substring, trim, concatenate, etc.
Guide to C# String and String Functions with Examples
Learn about strings in C# and explore various string functions with examples to manipulate and analyze them. This comprehensive guide is suitable for beginners who want to gain a better understanding of C# strings.
- Some results have been removed