我現(xiàn)在把遠(yuǎn)程的實(shí)體保存到Session中,希望采用序列化的形式把它轉(zhuǎn)為本地實(shí)體中!比如: HttpContext.Current.Session["UserInfo"] = info;info代表遠(yuǎn)程實(shí)體;本地實(shí)體:public class Users { public Users() { } private int _id; private string _userID; public int ID { get { return _id; } set { _id = value; } } public string UserID { get { return _userID; } set { _userID = value; } }怎樣采用序列化形式轉(zhuǎn)化?
使用序列化怎樣把遠(yuǎn)程實(shí)體轉(zhuǎn)化為本地實(shí)體?
幕布斯6054654
2018-11-02 02:03:24