Re: Custom Attribute

Tech-Archive recommends: Fix windows errors by optimizing your registry



Seems like you want Conditional Compilation. The attribute would require
reflection and it would be compiled into the metadata so it wouldn't be
dynamic. Using a conditional compiler constant won't require reflection to
determine the value of the attribute.

#const Level1

#if Level1
#else
#endif

HTH;
Eric Cadwell
http://www.origincontrols.com


.



Relevant Pages

  • Re: help with some odd code
    ... >Some info on the subject of conditional compilation: ... Regards, ... Chris ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: Fastcode Voting - Conditional Compilation
    ... >> variations of a function. ... > I don't think conditional compilation should be banned completely, ... Dennis ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • Re: Fastcode Voting - Conditional Compilation
    ... > My suggestion for the rule would be: ... > variations of a function. ... I don't think conditional compilation should be banned completely, ... Prev by Date: ...
    (borland.public.delphi.language.basm)
  • Re: Fastcode Voting - Conditional Compilation
    ... > "It is not allowed to use conditional compilation to create variations of ... In this case the author should supply separete, ... Prev by Date: ...
    (borland.public.delphi.language.basm)