41 internal static object Escape(
object obj)
43 return EscapeOrUnescape(obj,
true);
46 internal static object Unescape(
object obj)
48 return EscapeOrUnescape(obj,
false);
51 static object EscapeOrUnescape(
object obj,
bool escape)
53 var str = obj as string;
57 var arr = obj as
object[];
59 for (
int i = 0; i < arr.Length; i++)
60 arr[i] = EscapeOrUnescape(arr[i], escape);
84 this.defaultValue = Unescape(defaultValue);
87 public object Value => defaultValue;