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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -