URSA.Web.Http.HeaderValue.ParseStringChar C# (CSharp) Method

ParseStringChar() private static method

private static ParseStringChar ( char chr, StringBuilder currentTarget, bool &isInString, bool &isEscape ) : void
chr char
currentTarget StringBuilder
isInString bool
isEscape bool
return void
        private static void ParseStringChar(char chr, StringBuilder currentTarget, ref bool isInString, ref bool isEscape)
        {
            if (isEscape)
            {
                isEscape = false;
                currentTarget.Append("\\" + chr);
            }
            else
            {
                isInString = !isInString;
                currentTarget.Append(chr);
            }
        }