alex-klock / razor-mediator-4-tridion

Automatically exported from code.google.com/p/razor-mediator-4-tridion
1 stars 4 forks source link

Smart quotes in code samples in document will not compile #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Paste code from the documentation into your TBB. e.g. 
    @foreach (var cp in GetComponentPresentationsByTemplate(“Test Template”)) {
        <div>Another component for template @cp.Template.Title:</div>
        <div>@cp.RenderComponentPresentation()</div>
    }

2. Note that "Test Template" is written as “Test Template”
3. Try to save the TBB. You will get a compiler error.

"Smart quote" characters like this are illegal as string delimiters in C#. 
Being able to copy/paste from the samples would be helpful to people trying to 
learn. 

Original issue reported on code.google.com by dominic....@gmail.com on 30 Oct 2012 at 1:41

GoogleCodeExporter commented 9 years ago
Resolved - created new version of document with no smart quotes

Original comment by robert.c...@gmail.com on 31 Oct 2012 at 11:36

GoogleCodeExporter commented 9 years ago
Version 1.3.1 (and following) now using Robert's version.

Original comment by alex@tahzoo.com on 21 Dec 2012 at 3:14