Problem : A checklist for improving execution time between .NET code and SQL Server. Anything from the basic to weird […]
Indentation of second line in WPF TextFormatter
Problem : I’m making a WPF text-editor using TextFormatter. I need to indent the second line in each paragraph. The […]
Is “ReferenceEquals(myObject, null)” better practice than “myObject == null”?
Problem : I have a co-worker who’s a fan of writing his null checks as follows: if (!ReferenceEquals(myObject, null)) I, […]
Why does this code even compile?
Problem : Question: Why does the below code (not written by me) even compile ? I mean apart from the […]
Hook into Application_Start in a HttpModule
Problem : I’m implementing a simple HttpModule, where I want some code to run when the web application is started. […]
What ways can I ensure that a string property is of a particular length?
Problem : I’ve created some classes that will be used to provide data to stored procedures in my database. The […]
How to detect mouse wheel tilt?
Problem : To detect rotation of the mouse wheel in .NET/WinForms, I can override OnMouseWheel. Clicking can be detected by […]
Is compiling Release and Debug going to generate different IL code + different machine code?
Problem : I heard compiling in Release mode generates optimized code than in Debug mode, which is fine. But is […]
VSTO: Application Focus
Problem : Anyone know of a way to see if the Excel window of a VSTO project is active/in focus? […]
Why can I access an item in KeyCollection/ValueCollection by index even if it doesn’t implement IList(Of Key)?
Problem : I’ve noticed a strange VB.NET thing. Coming from this question I’ve provided a way to access keys and […]