Right

<System.Runtime.CompilerServices.Extension()>
Public Function Right(ByVal text As String, size As Integer) As String
    Return text.Substring(Math.Max(0, text.Length - size), Math.Min(text.Length, size))
End Function
Example:
Console.WriteLine("Fons".Right(2))

Description

Returns a string containing a specified number of characters from the right side of a string

Details

Double click on the code to select all.

 

;