经过个人研究,ObjectStateFormatter.SerializeValue里面可以看到系统支持如下类型:
null
string
int
Pair
Triplet
IndexedString
ArrayList
bool
byte
char
DateTime
double
short
float
IDictionary
Type
Array
Enum(必须为int, 其它如short,long是不可以的)
Color
UInt
假如数据的Type对应的TypeConverter可以把从String转换得到数据,该数据类型可存储
最后直接通过BinaryFormatter来序列化数据
null
string
int
Pair
Triplet
IndexedString
ArrayList
bool
byte
char
DateTime
double
short
float
IDictionary
Type
Array
Enum(必须为int, 其它如short,long是不可以的)
Color
UInt
假如数据的Type对应的TypeConverter可以把从String转换得到数据,该数据类型可存储
最后直接通过BinaryFormatter来序列化数据
浙公网安备 33010602011771号