我有以下课程:
public class DisplayFunction
{
[System.Xml.Serialization.XmlAttribute()]
public byte[] Color
{
get;
set;
}
[System.Xml.Serialization.XmlAttribute()]
public FunctionShape Shape
{
get;
set;
}
[System.Xml.Serialization.XmlAttribute()]
public int Id
{
get;
set;
}
}
我正在使用 xml 序列化程序并得到结果:
<DisplayFunctions Color="et57hQ==" Shape="Bar" Id="514" />
虽然我希望结果是:
<DisplayFunctions Color="122,222,123,133" Shape="Bar" Id="514" />
我怎样才能得到那个结果?