Use C# attribute to track function call, variables, and return value?
问题 In Python, I can use decorators to trace the function call, its variables and return values. It is very easy to use. I just wonder can C# do the same thing? I find out there is a sample code of CallTracing Attribute online. However, it didn't show the result I expected. Does C# attributes have similar concepts as python's decorator? Thanks you and Best Regards! [AttributeUsage(AttributeTargets.Method | AttributeTargets.ReturnValue | AttributeTargets.Property, AllowMultiple = false)] public