Horje
remove last instance of string c# Code Example
remove last instance of string c#
public static string ReplaceLastOccurrence(string Source, string Find, string Replace)
{
        int place = Source.LastIndexOf(Find);

        if(place == -1)
           return Source;

        string result = Source.Remove(place, Find.Length).Insert(place, Replace);
        return result;
}




Csharp

Related
c# get dictionary first key Code Example c# get dictionary first key Code Example
vue transition enter before Code Example vue transition enter before Code Example
update postgres sequence to max Code Example update postgres sequence to max Code Example
update squence c# Code Example update squence c# Code Example
uri file path c# Code Example uri file path c# Code Example

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