Help me to resolve following issues:
Type 'System.Resources.RuntimeResourceSet' in Assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.
Sample Code:
[Serializable]
public class clsModelClass
{
private List _obj1 = new List();
private List _obj2 = new List();
public System.Resources.ResourceManager ResourceManager { get; set; }
public string Property1 { get; set; }
public long Property2 { get; set; }
public string Property3 { get; set; }
}
[Serializable]
public class clsTestClass
{
public static string staticObj1 = "staticObj1";
public static string staticObj2 = "staticObj2";
public static string staticObj3 = "staticObj3";
}
Is it because of :
public System.Resources.ResourceManager ResourceManager { get; set; }
since ResourceManager class is not serialized. Should i use [nonSerialize] like
[nonSerialize]
public System.Resources.ResourceManager ResourceManager { get; set; }
Thanks in advance.