Tag: Tips

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

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.

Spot the Difference!

Spot the Difference!

There is a new feature of Productivity Power Tools 2013 for Visual Studio called Syntactic Line Compression. This feature "enables you to make better use of your screen's vertical real-estate ... [by shrinking] lines that contain neither letters nor numbers by 25% vertically allowing more lines to be displayed in the editor".