Author: Pmillio | Posted on: 10/3/2009 9:22:32 AM | Views : 292

Hi i have a class in my data access layer which i need to make serializable in order to make it work with enyim memcached. I have done the following but it doesnt seem to work.
[Serializable] public class Users { private int USERS_ID; public int _USERS_ID { get { return USERS_ID; } set { USERS_ID = value; } } private int Name; public int _Name { get { return Name; } set { Name= value; } }
Is there anything else i need to do to make the class and its objects serializable, this is what i have in my method if it helps;
Users users = new Users(); MemcachedClient mc = new MemcachedClient(); users = (Users)mc.Get("userProfileInfo" + strUsername); if (users == null) ...

Go to the complete details ...