One of my ways is:
public zero; some method is P3) {# if DEBUG object [] args = GetArguments (); LogParamaters (args); #endif // common stuff in the method} is there any way to regain an array of arguments passed in the method so that they are logged in?
I have many ways and woods want to pass by name logically, because human error starts crawling in an uncertain form.
I'm guessing that there will be reflection in some form - which is fine because it will only be used for debugging purposes.
Update
A bit more information:
I can not change the signature of some method method, Because it comes out as a webmath and is to impersonate a legacy system that is impersonating it.
The heritage system already logs the logic that has been passed. The new implementation will wrap the heritage system, so I'm looking to log the parameters in the C # version, so that I've passed the correct parameters in the correct order.
I'm just looking for logic values to log
if you If you use you can easily add the method to log in. Within this attribute, you can write the logging code and also provide the necessary logic. It is known as cross cutting concerns and AOP (aspect-focused programming)