Answers for "c# string keep first n characters"

C#
6

c# get first 5 characters of string

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

c# remove first three characters from string

str = "hello world!";
str.Substring(n, str.Length-n)
Posted by: Guest on October-22-2020

Code answers related to "c# string keep first n characters"

C# Answers by Framework

Browse Popular Code Answers by Language