Answers for "how do i get the first and last initial/character from a name string in c#"

C#
11

c# get first 5 characters of string

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

c# get last 3 characters of string

var result = input.Substring(input.Length - 3);
Posted by: Guest on February-16-2021

Code answers related to "how do i get the first and last initial/character from a name string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language