Here are the examples of the csharp api string.RemoveTrailing(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : StringExtensions.cs
with BSD 3-Clause "New" or "Revised" License
from testcop
with BSD 3-Clause "New" or "Revised" License
from testcop
public static string Flip(this String refString, bool remove, string value)
{
if (refString.EndsWith(value))
{
if (remove)
{
return refString.RemoveTrailing(value);
}
return refString;
}
if(remove)
{
return refString;
}
return refString+value;
}