marking a class as serializable dynamically!
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
Re: marking a class as serializable dynamically!
1) Modify the ASN1C program program to add the attribute for you
or
2) Perform some post processing that adds the attribute (after the ANS1C program has run).
Re: marking a class as serializable dynamically!
Quote:
Originally Posted by
Arjay
1) Modify the ASN1C program program to add the attribute for you
or
2) Perform some post processing that adds the attribute (after the ANS1C program has run).
1) I can't modify the program it is an external program (Qt Assistant Version 4.6.2).
2 ) Can you give me an example or link about it?
Re: marking a class as serializable dynamically!
Quote:
Originally Posted by
kubi081
2 ) Can you give me an example or link about it?
Look at PostSharp, that's his job.