Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# right function

    /// <summary>Get substring of specified number of characters on the right.
	/// There is no built-in 'Right' function in C#</summary>
    public static string Right(this string value, int length)
    {
        if (String.IsNullOrEmpty(value)) return string.Empty;
        return value.Length <= length ? value : value.Substring(value.Length - length);
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# linq select as new object 
:: c# get function name 
Csharp :: unity c# change animation 
Csharp :: text read C# 
Csharp :: verify if number c# 
Csharp :: print all complete object in list c# 
Csharp :: c# switch statements 
Csharp :: c# close form 
Csharp :: c# string to int 
Csharp :: unity toint 
Csharp :: how to get unique list in c# 
Csharp :: c# handle single quote inside string 
Csharp ::  
Csharp :: add spaces in string 
Csharp :: published net core did not have wwwroot 
Csharp :: Winform on exit run method 
Csharp :: switch case with 2 variables c# 
Csharp :: how to set border for groupbox in c# 
Csharp :: C# round number of digits after decimal point 
Csharp :: how to add to a list in c# 
Csharp :: in c sharp how do you work the wait function 
Csharp :: c# loop class properties add to array 
Csharp :: unity lerp 
Csharp :: c# null conditional operator if statement 
Csharp :: singleton pattern c# 
Csharp :: how to fix on Input.GetMouseButtonDown(0) conting as ui 
Csharp :: c# gettype 
Csharp :: mvc c# return renderPartial 
Csharp :: .net on vs code 
Csharp :: c# array zaheln speichern 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =