- ふらっと C#,C♯,C#(初心者用) Part112
88 :デフォルトの名無しさん[sage]:2014/07/21(月) 20:14:48.61 ID:PAbp4tWj - [XmlIgnore]
int weight{get;set;} [XmlElement("weight")] string weightString{ get{ return weight.ToString(); } set{ int i; int.TryParse(value,out i); weight=i; } } 試してないけどこんな感じなら行けるんじゃね?
|
|