Menu Home

C# Attributes

Overview This post gives an overview of C# attributes; what they are, the different flavours, when they should be used and finishing up with some examples. What are C# Attributes? Attributes in C# provide a mechanism of associating Metadata with code entities such as types, methods, properties etc. Once defined you can […]

Boxing and Unboxing in C#

This post is an aide-memoire as I learn more about boxing and unboxing in C# and is based upon this part of the C# docs. Boxing Is the process of converting a value type (such as int or bool) to the type Object or to any interface type implemented by […]