1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

marking a class as serializable dynamically!

Discussion in 'C#' started by kubi081, Oct 4, 2010.

  1. kubi081

    kubi081 New Member

    Joined:
    Oct 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I'm working on a ASN1 decoding project. I've faced a problem that I could't figure out! The problem is ASN1C program is creating classes for me to use them for decoding process. But after decoding process I need to be able to serialize that class. But the problem is those classes (which are about 6000 classes)are being created without serializable attribute. So I need to add them attributes "serializable".
    Is there any way to do this dynamically?

    I'll appreciate any help.

    Thanks in advance
     

Share This Page