Literals prior to sparklight engine

I went through the spark review documentation and found many literals appearing in the code for which I could not find any links. E.g.

!, #, $, !$, ...

What are they needed for? What do these combinations mean? When do they come into use? I skip more literals that precede or appear after{

+1
source share
3 answers

Also ?{for conditional output .

+1
source

Found one:

$!{expression} , , NullReferenceException, , .

0

So the missing:

#: put it at the beginning of the line to insert the C # inline code into the view (you have to end the line like any C # statement

${}: hope you know that;)

!{}: output without html content encoding (unsafe output)

0
source

Source: https://habr.com/ru/post/1726138/


All Articles