Consider a class property:
private int field;
public Order Field
{
get { return this.field; }
set { this.field= value; }
}
Is there any way to omit the setter if, say, DEBUG is defined?
I don't want to do:
#if !DEBUG
set { this.field= value; }
#endif
I would prefer:
[OmitThisMethod(DEBUG)]
set { this.field= value; }
Using [Conditional("DEBUG")] does not solve this as I want to get a
compile error if someone attempts to set the field
Regards
--
Wal
http://www.vooose.com
*** Sent via Developersdex http://www.developersdex.com ***