Skip to content

Instantly share code, notes, and snippets.

@controlflow
Created December 18, 2017 16:31
Show Gist options
  • Save controlflow/9ca936d93dfe0c5b98ec530b40b924e6 to your computer and use it in GitHub Desktop.
Save controlflow/9ca936d93dfe0c5b98ec530b40b924e6 to your computer and use it in GitHub Desktop.
switch (presentation[index])
{
case '\\':
case '\n':
return false;
case '\"':
if (inCharacterLiteral)
{
valueBuilder.Append(presentation[index]);
return true;
}
return false;
default:
valueBuilder.Append(presentation[index]);
return true;
}
switch (presentation[index])
{
case '\\':
case '\n':
case '\"' when !inCharacterLiteral:
return false;
default:
valueBuilder.Append(presentation[index]);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment