Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Misc
8.8K+ articles
C#
1.9K+ articles
CSharp-method
701+ articles
C# Programs
126+ articles
CSharp-Arrays
53+ articles
CSharp-Byte-Struct
11+ articles
CSharp-ControlFlow
7+ articles
CSharp-string
58 posts
Recent Articles
Popular Articles
How to Compare Strings in C#?
Last Updated: 24 January 2022
A string is a collection of characters and is used to store plain text. Unlike C or C++, a string in C# is not terminated with a null character. The maximum size of a stri...
read more
C#
CSharp-string
Picked
CSharp-Strings-Programs
Difference between String and string in C#
Last Updated: 05 April 2024
String is an alias for System.String class and instead of writing System.String one can use String which is a shorthand for System.String class and is defined in the .NET ...
read more
Difference Between
C#
CSharp-string
Picked
Different Ways to Convert Char Array to String in C#
Last Updated: 28 May 2020
We have given a character array arr and the task is to convert char array to string str in C#.Input: arr = [s, t, r, i, n, g] Output: string Input: arr = [G, e, e, k, s,...
read more
C#
CSharp-Arrays
CSharp-string
Converting a String to its Equivalent Byte Array in C#
Last Updated: 28 May 2020
Given a string, the task is to convert this string into a Byte array in C#.Examples:Input: aAOutput: [97, 65 ] Input: HelloOutput: [ 72, 101, 108, 108, 111 ]Method 1:Usin...
read more
C#
CSharp-string
CSharp-Byte-Struct
String.Format() Method in C# with Examples | Set - 1
Last Updated: 17 March 2025
In C#, Format() is a method of the String Class. This method is used to replace one or more format items in the specified string with the string representation of a specif...
read more
C#
CSharp-method
CSharp-string
String.Format() Method in C# with Examples | Set – 2
Last Updated: 28 May 2020
In C#, Format() is a string method. This method is used to replace one or more format items in the specified string with the string representation of a specified object.In...
read more
C#
CSharp-method
CSharp-string
String.Format() Method in C# with Examples | Set - 3
Last Updated: 28 May 2020
In C#, Format() is a string method. This method is used to replace one or more format items in the specified string with the string representation of a specified object.In...
read more
C#
CSharp-method
CSharp-string
Convert a Character to the String in C#
Last Updated: 26 May 2020
Given a character, the task is to character to the string in C#.Examples:Input : X = 'a'Output : string S = "a"Input : X = 'A'Output : string S = "A"Approach: The idea i...
read more
C#
CSharp-string
Adding Text with a Float number Using String.Format() Method in C#
Last Updated: 26 May 2020
Here the task is to add the text T with a float number F using String.Format() method.Example :Input : F = 12.3, T = "abc"Output : 12abc.abc3Input : F = 0.0, T = "Geeks"Ou...
read more
C#
CSharp-string
Convert String to Character Array in C#
Last Updated: 06 November 2024
In C#, converting a string to a character array is a straightforward process that allows you to manipulate individual characters within the string. This conversion can be ...
read more
C#
CSharp-string
C# Programs
Different ways to convert String to Integer in C#
Last Updated: 05 November 2024
In C#, we can convert a string to an integer using various methods. This process is common when dealing with user input or data parsing. In this article, we will learn Dif...
read more
C#
CSharp-string
C# Programs
C# String Split() Method
Last Updated: 26 March 2025
In C#, Split() is astring classmethod used to divide a string into an array of substrings. The Split() method divides a string into an array of substrings using specified ...
read more
C#
CSharp-method
CSharp-string
C# StringComparer.Compare() Method
Last Updated: 19 May 2025
In C#, the Compare method is used to compare two objects or strings and returns an indication of their relative sort order.Example: C# program to illustrate how to use Str...
read more
C#
CSharp-method
CSharp-string
C# StringBuilder
Last Updated: 11 January 2025
StringBuilder is aDynamic Object. It doesn’t create a new object in the memory but dynamically expands the needed memory to accommodate the modified or new string.AStringo...
read more
C#
CSharp-string
Picked
CSharp-StringBuilder-Class
Hash Function for String data in C#
Last Updated: 05 November 2024
In C#, hash functions are used to convert input data (like strings) into a fixed-size numerical value, commonly known as a hash code. This hash code can be utilized for va...
read more
Hash
Technical Scripter
C#
CSharp-string
C# Programs
DSA
1
2
3
4
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !