Horje
get last 4 character c# 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 4 character c#
string mystring = "Hellopeople";
string lastFour =  mystring.Substring(mystring.Length - 4 , 4);

Console.WriteLine(lastFour);
Source: reactgo.com




Csharp

Related
UnityEngine.Mesh:get_vertices() Code Example UnityEngine.Mesh:get_vertices() Code Example
command to add entity framework layer in existing database Code Example command to add entity framework layer in existing database Code Example
c# datagridview set column header alignment Code Example c# datagridview set column header alignment Code Example
jq map over array Code Example jq map over array Code Example
lsbCat.Items.Clear();lsbCat.Items.AddRange(Cats.ToArray());txtCat.Clear(); Code Example lsbCat.Items.Clear();lsbCat.Items.AddRange(Cats.ToArray());txtCat.Clear(); Code Example

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