forked from PGR/ascnet
17 lines
365 B
C#
17 lines
365 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|