1
0
mirror of https://github.com/romanlryji/EventLogLoader.git synced 2025-12-07 23:23:44 +02:00
Files
EventLogLoader/EventLogApp/EventElements/StringExtension.cs
2019-10-02 11:18:07 +03:00

23 lines
470 B
C#

namespace EventLogApp
{
public static class StringExtension
{
public static string RemoveQuotes(this string str)
{
string retval = str;
if (retval.StartsWith("\""))
{
retval = retval.Substring(1);
}
if (retval.EndsWith("\""))
{
retval = retval.Substring(0, retval.Length - 1);
}
return retval;
}
}
}