110,535
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
public class C1
{
public object[,] Data; //注意这里是一个二维数组
}
[DataContract()]
public class C1
{
[DataMember()]
public object[,] Data; //注意这里是一个二维数组
}
[DataContract()]
public class C1 : ISerializable
{
[DataMember()]
public object[,] Data;
public C1()
{
Data = new object[1, 1];
}
public C1(SerializationInfo info, StreamingContext context)
{
Data = new object[1, 1];
Data(0, 0) = info.GetString("1");
}
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("1", Data(0, 0));
}
}