c# - How to create a [Tag] with specific method call? -
I want to make "[tag]" a new custom with a special custom meaning.
In the image you have a list of the methods in the service and you want to enter some of some information: I'm actually doing something like this
Public Zero Method (Parameter) {LogMethodCall (); // method body} Actually I want prefere to create something like this: [LogEnabled] Public Zero Method (Parameter) Method of method} And something like this has been stored:
If (Mathri log is enabled) LogMethodCall () Is it possible? Does this possibility exist in C #? How is it called?
Use:
With it you can create something like a Public class log enabled: OnMethodBoundaryAccpect {public override zero OnEntry (MethodExecutionArgs args) {Logger.LogMethodCall (); >
Comments
Post a Comment