Exemplo n.º 1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="jsonName"></param>
 public JsonNameAttribute(string jsonName)
 {
     this.jsonName = JsonWriter.EnsureValidIdentifier(jsonName, false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Verifies is a valid EcmaScript variable expression.
 /// </summary>
 /// <param name="varExpr">the variable expression</param>
 /// <returns>varExpr</returns>
 public static string EnsureValidIdentifier(string varExpr, bool nested)
 {
     return(JsonWriter.EnsureValidIdentifier(varExpr, nested, true));
 }