Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics Strings Escape Sequences

Jay, why did you not specify in escape sequences, that in order for \" to work, it actually needs to be "\""...

In the lesson, it's snuck into the text which is already quoted that all you need to do is enter \" in order to insert a double quote. Additionally, when highlighting the shortcode for a double quote, it's noted as \". Realistically, that's not true at all. On it's own, it's "\"" OR it needed to be specified that \" will only work under the circumstances that it's creating a quotation, but is required to already be placed in a set of quotations.

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Data Analysis Techdegree Graduate 48,307 Points

You're correct here, I think he probably just thought it was implied since at this point in the course we're learning about strings.