Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# trimend substring

public static string TrimEnd(this string source, string value)
{
    if (!source.EndsWith(value))
        return source;

    return source.Remove(source.LastIndexOf(value));
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: get file upload file size in MB c# 
Csharp :: unity c# image invisible 
Csharp :: recorrer list c# 
Csharp :: camera in raylib c# 
Csharp :: unity awake 
Csharp :: rgb to console color 
Csharp :: c# array to label 
Csharp :: how to count letters in c# 
Csharp :: c# file to byte array 
Csharp :: boxing and unboxing in c# 
Csharp :: modal barrier in flutter 
Csharp :: c# property attribute 
Csharp :: Severity Code Description Project File Line Suppression State Error MSB3021 
Csharp :: c# do while or 
Csharp :: unity how to check serialized enum 
Csharp :: unity save scene at runtime 
Csharp :: c# split string 
Csharp :: oauth API with the Access Token to retrieve some of users information. 
Csharp :: how to make a cast in c# 
Csharp :: c# code examples 
Csharp :: Triangle perimeter 
Csharp :: c# code snippets 
Csharp :: f# get last element of list 
Csharp :: unity image button 
Csharp :: wpf binding to static property in code behind 
Csharp :: c# odp.net close session 
Csharp :: pass viewbag selectlistitem to razor 
Csharp :: nullable IList to List 
Csharp :: asp net mvc convert ienumerable to selectlistitem 
Csharp :: Toggle value change 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =