I would like to ignore { character in string is it possible ?
thanks for help
String.Format("function(s, e) { {0}.PerformCallback(MyObject.GetSelectedItem().value); }", getClientName);
You have to double the curly braces in order to escape them:
String.Format(CultureInfo.InvariantCulture, @"
function(s, e) {{
{0}.PerformCallback(MyObject.GetSelectedItem().value);
}}", getClientName);
You can escape the curly brace by typing {{ and it will display as one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With