Serialization

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suzi167
    New Member
    • Feb 2007
    • 10

    Serialization

    Hello all,

    I have a question.

    if I have a class A which is marked as [Serializable] and I need to use it in class B which is NOT marked as [Serializable] how can I do that without getting an error message.

    [Serializable]
    public class A
    {

    }


    public class B
    {
    public A;
    }

    the above scenario gives me an error message:

    Type'System.Win dows.Forms.User Control' in Assembly 'System.Windows .Forms, Version 2.0.0.0, Culture= neutral,
    PublicTokenKey = b77a56561934e08 9' is not marked as Serializable.



    Thanks

    Susan
Working...