'How to escape the "at" (@) symbol when setting a property to a constant string?
Look at this code:
<MyComponent Param1="@SomeValue" />
In MyComponent, Param1 will be set to the value of SomeValue variable. How can i set Param1 to "@SomeValue" String?
Solution 1:[1]
If I undersrtood your Question, you can do it like this
<MyComponent Param1="@SomeValue" />
string SomeValue = "@SomeValue";
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Surinder Singh |
