次のようにシリアル化できる C# クラスを作成する最良の方法は何ですか?
marks: [
{ c: [57.162499, 65.54718], // latitude, longitude - this type of coordinates works only for World Map
tooltip: 'Tyumen - Click to go to http://yahoo.com', // text for tooltip
attrs: {
href: 'http://yahoo.com', // link
src: '/markers/pin1_red.png' // image for marker
}
},
{ xy: [50, 120], // x-y coodinates - works for all maps, including World Map
tooltip: 'This is London! Click to go to http://london.com',
attrs: {
href: 'http://yahoo.com', // link
src: '/markers/pin1_yellow.png' // image for marker
}
}
]
上記のコードでは、「c」または「xy」のいずれかを割り当てますが、両方を同時に割り当てません。私は Newtonsoft.Json を使用しています。私が欲しいのは、上記のコードにシリアル化できる C# クラスだけです。