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

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -