/// <summary> /// Ctor /// </summary> /// <param name="jsonName"></param> public JsonNameAttribute(string jsonName) { this.jsonName = JsonWriter.EnsureValidIdentifier(jsonName, false); }
/// <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)); }