Category Archives for Tips

C# Volatile Keyword

Of the many keywords in C#, volatile is one of the lesser known and last commonly used keywords. Today, I will in 5 minutes of less, explain what the volatile keyword is for and when the volatile keyword should be … Continue reading

18. January 2015 by Adam Riddick
Categories: C#, Tips | Leave a comment

C# Using Debug.Assert

Debug.Assert is a member of the System.Diagnostics library that can be used to validate a condition, pausing the running of an application is the condition is not satisfied. Quoting from Code Complete (I highly suggest giving it a read if … Continue reading

21. November 2014 by Adam Riddick
Categories: C#, Tips | Leave a comment

Find Active Directory Group Members in SQL Server

Active Directory Group Members in SQL SQL Server is brilliant. It’s a pleasure to work with, sometimes the queries and structures required are complex and a challenge to implement, but ultimately you can rely on the SQL engine doing it’s … Continue reading

31. October 2014 by Adam Riddick
Categories: Databases, SQL, Tips | Leave a comment

SSRS Performance with Option(Recompile)

Sometimes, SQL Server isn’t as great as it usually is and can cause SSRS Performance issues when running queries that execute fast inside SSMS. Just the other week I was writing a simple join script against close to 200k records in … Continue reading

15. October 2014 by Adam Riddick
Categories: Business Intelligence, SQL, Tips | Leave a comment

Sql Server Reporting Google Chrome Fix

Two weeks ago, I blogged about the need for Reporting Systems to support and influence the decisions being made by any organisation. Today, I’ll explore a Sql Server Reporting Google Chrome Fix, to enable the viewing of SSRS reports in … Continue reading

11. October 2014 by Adam Riddick
Categories: Business Intelligence, SQL, Tips | Leave a comment

C# Inherit from multiple interfaces with clashing method names

Recently, in one of those many projects on the go, I was working on an interface between two individual systems that are required to talk to each other. I can’t discuss much about the project itself, white label and all, … Continue reading

18. September 2014 by Adam Riddick
Categories: C#, Tips | Leave a comment

Isolating Unit Tests with Microsoft Fakes

Isolating unit tests is a large requirement of unit testing. Quite often, individual units of code will rely on, or access,  other sections to do their processing. For example, a method that saves an entity to the database will call … Continue reading

23. August 2014 by Adam Riddick
Categories: C#, Testing, Tips | Leave a comment

.Net Interview Q & A Resources

.Net Interview Q & A Generally speaking, I’m an anxious person. Not in the sense that I fear what is going to happen, on the contrary, I think that I’m a bit excitable when it comes to new things, and … Continue reading

12. August 2014 by Adam Riddick
Categories: Bits & Bobs, Experiences, Tips | Leave a comment

C# ?? Operator

Those of you who have used C# for a while will probably be familiar with the ?? operator, known as the null coalescing operator. The ?? Operator is used to check if a value is null, and will return the … Continue reading

16. June 2014 by Adam Riddick
Categories: C#, Tips | Leave a comment

c# Type Alias

C# comes with the using directive, which allows us to import namespaces in order to allow access to the members of namespace, but it can also be used to create a namespace or type alias. When used as an Type … Continue reading

12. June 2014 by Adam Riddick
Categories: Bits & Bobs, C#, Tips | Leave a comment

← Older posts