I am working on a project where I need a set of classes that will be developed and used for one phase of the project.
In the next step, we do not need a set of classes and methods. This set of classes and methods will be used throughout the application, so if I add them like any other classes, I will need to manually remove them if they are not required.
Is there a way in C # so that I can set the attribute of the class or the places where the class is instantiated to avoid calling the instance and method based on the attribute value.
Something like installation
[Phase = 2] BridgingComponent bridgeComponent = new BridgeComponent();
Any help was appreciated on this front.
source share