111,076
社区成员




[Serializable]
public class MO
{
...
}
if (obj.GetType().Attributes & System.Reflection.TypeAttributes.Serializable == System.Reflection.TypeAttributes.Serializable)
{
...
}
if (obj.GetType().Attributes & System.Reflection.TypeAttributes.Serializable) == System.Reflection.TypeAttributes.Serializable)
{
...
}
[Serializable]
public class MO
{
...
}
if(判别语句)
{
序列化该对象;
}
else
{
抛出异常;
}