C#怎么存取一个类的属性
C#如何存取一个类的属性
C#如何存取一个类的属性
------解决方案--------------------
http://msdn.microsoft.com/zh-cn/library/w86s7x04.aspx
set,get方法
------解决方案--------------------
------解决方案--------------------
类名.属性名
------解决方案--------------------
序列号和反序列化
------解决方案--------------------
把属性写到xml文件,保存到程序运行目录中。每次启动都读取这个xml文件。
------解决方案--------------------
http://blog.****.net/duanzi_peng/article/details/24018431
------解决方案--------------------
首先你的属性要有set,get操作元。
然后才可以对属性进行读写操作。
------解决方案--------------------
那你还不如把你的信息保存在数据库,然后在读取操作、。
C#如何存取一个类的属性
------解决方案--------------------
http://msdn.microsoft.com/zh-cn/library/w86s7x04.aspx
set,get方法
------解决方案--------------------
private int _count;
public int Count
{
get { return _count; }
set
{
_count = value;
}
}
------解决方案--------------------
类名.属性名
------解决方案--------------------
序列号和反序列化
------解决方案--------------------
把属性写到xml文件,保存到程序运行目录中。每次启动都读取这个xml文件。
------解决方案--------------------
我的意思是保存到数据库或者文件之类的地方,以便软件启动后能读取储存的信息,恢复到上次关闭时的状态
private int _count;
public int Count
{
get { return _count; }
set
{
_count = value;
}
}
把属性写到xml文件,保存到程序运行目录中。每次启动都读取这个xml文件。
http://blog.****.net/duanzi_peng/article/details/24018431
------解决方案--------------------
首先你的属性要有set,get操作元。
然后才可以对属性进行读写操作。
------解决方案--------------------
我的意思是保存到数据库或者文件之类的地方,以便软件启动后能读取储存的信息,恢复到上次关闭时的状态
http://msdn.microsoft.com/zh-cn/library/w86s7x04.aspx
set,get方法
那你还不如把你的信息保存在数据库,然后在读取操作、。