Horje
c# last char in string Code Example
c# get last character of string
string str = "Hello World";
string substr = str.Substring(str.Length - 1);
c# last char in string
string msg = "Hello";
string last_char = msg[^1..];
Console.WriteLine(last_char); // output:  o
get last character of string c#
str = str.Substring(str.Length - 1);
c# get last 3 characters of string
var result = input.Substring(input.Length - 3);




Csharp

Related
unity 2d player move Code Example unity 2d player move Code Example
difference two list c# Code Example difference two list c# Code Example
c# get month number Code Example c# get month number Code Example
how to chagne rotation in unity Code Example how to chagne rotation in unity Code Example
c# serialize to xml Code Example c# serialize to xml Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8