I'm working on a project, where I need a set of classes to be designed and used for one phase of the project.
In the subsequent phase, we will not be needing the set of classes and methods. These set of classes and methods will be used throughout the application and so if I add them as any other classes, I would need to manually remove them once they are not required.
Is there a way in C#, so that I can set an attribute on the class or places where the class is instantiated, to avoid that instantiation and method calls based on the value of the attribute.
Something like, setting
[Phase = 2]
BridgingComponent bridgeComponent = new BridgeComponent();
Any help appreciated on this front.