Answers for "how to take only first 4 char of a string in c#"

C#
7

c# get first 5 characters of string

string result = str.Substring(0,5);
Posted by: Guest on August-20-2020

Code answers related to "how to take only first 4 char of a string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language