Quantcast
Channel: User Sinatr - Stack Overflow
Viewing all articles
Browse latest Browse all 609

Comment by Sinatr on AOP Custom Attributes in C# ConsoleApp without PostSharp

$
0
0
Related. You serverly miss M in MCVE (minimal reproducible example) and I doubt you have rough estimation of required programming without using Postsharp or similar libraries. Writing attribute and adding it to methods is 100% of work with AOP library and 0.01% without. AOP approach would allow you to get rid of wrapping try/cath inside each method, but a proper codereview perhaps makes your code 10 times shorter and clear.

Viewing all articles
Browse latest Browse all 609

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>