Tag: C#

Articles I recently found useful or interesting #0004

Articles I recently found useful or interesting #0004

Slow in the Application, Fast in SSMS? - Understanding Performance Mysteries ... NumPy: How to Get Indices Where Value is True ... PlantUML ... DotNext ... Azure Functions warmup trigger ... Await anything ... Cancellation in Managed Threads ... OData search.in function in Azure Cognitive Search ... T-levels Parents’ Guide ... AsciiDoc

Stopwatch ticks are different from DateTime.Ticks

Stopwatch ticks are different from DateTime.Ticks

In C#/.NET the System.Diagnostic.Stopwatch class can be used for more precise timing than when using System.DateTime. Until recently, despite many years of using .NET, I hadn't used Stopwatch; DateTime was precise enough for timing web applications or timing over thousands of iterations. I didn't actually need to use it now, but I decided to give … Continue reading Stopwatch ticks are different from DateTime.Ticks

AOP with Castle – revisited

AOP with Castle – revisited

A couple of years ago I posted an article demonstrating how Castle DynamicProxy and Castle Windsor can be used to implement concepts of Aspect-Oriented Programming (AOP). The version of Castle that I used at the time was even then an old out of date version. So I thought I'd revisit that little project and bring it up to date using the current latest versions of Castle.Core (contains DynamicProxy) and Castle.Windsor.

Reading the ReSharper Code Inspections Reference for Fun!

Reading the ReSharper Code Inspections Reference for Fun!

If you are a ReSharper user, then you will have know that it has a Code Inspection feature that, as well as highlighting errors and warnings, can make suggestions and hints that could improve your code. If you see one of these hints, and don't understand why you are getting the hint, then it is, of course, a good idea to follow the link to the ReSharper website to learn something new.