about composite attribute

  • Thread starter Thread starter aXqd
  • Start date Start date
A

aXqd

rencently i always write something like this:

[Serializable]
[A]

[C]
public class FooClass{}

i wonder if i can merge them:

[D]
public class FooClass{}

i guess i can do some magic in the constructor of DAttribute class,
such as CodeDom...or something?? and according to the MSDN, i have to
do this trick before the FooClass gets compiled. is that possible?

thx in advance:)
 
Hello aXqd,
rencently i always write something like this:

[Serializable]
[A]

[C]
public class FooClass{}

i wonder if i can merge them:

[D]
public class FooClass{}


I think there's no way you can merge them like that. But of course you can
do:

[Serializable, A, B, C]
public class Foo { ... }


Oliver Sturm
 
Back
Top