次のコードがあります。
///<summary>
///In this case you can set any other valid attribute for the editable element.
///For example, if the element is edittype:'text', we can set size, maxlength,
///etc. attributes. Refer to the valid attributes for the element
///</summary>
public object OtherOptions { get; set; }
public override string ToString()
{
return this.ToJSON();
}
OtherOptions プロパティから匿名オブジェクトを取得し、匿名オブジェクトの各プロパティをメイン オブジェクトと同じようにシリアル化する必要があります。
例えば:
OtherOptions = new { A = "1", B = "2" }
シリアル化すると、次のようになります(または次のようなもの):
OtherOptions: {
A: "1",
B: "2"
}
明示的に削除せずに、A と B を同じレベルの OtherOptions にすることは可能ですか。