LumiSoft.Net.TextUtils.RemoveQuotes C# (CSharp) Метод

RemoveQuotes() публичный статический Метод

Removes start and end quote from string, if its quouted string. For example: "text" will be text.
public static RemoveQuotes ( string text ) : string
text string Text from where to remove quotes.
Результат string
        public static string RemoveQuotes(string text)
        {
            text = text.Trim();

            if(text.StartsWith("\"")){
                text = text.Substring(1);
            }
            if(text.EndsWith("\"")){
                text = text.Substring(0,text.Length - 1);
            }

            return text;
        }