ascnet/AscNet.Logging/LoggingExtensions.cs

17 lines
365 B
C#
Raw Permalink Normal View History

namespace AscNet.Logging
{
public static class LoggingExtensions
{
public static string RemoveBefore(this string value, char character)
{
int index = value.LastIndexOf(character);
if (index > 0)
{
value = value[(index + 1)..];
}
return value;
}
}
}