I came across some nice C# samples from Microsoft today providing everything from Hello World, to how to use Yield and how to program Attributes.
Official Visual Studio 2010 Samples for C# 4.0
Worth having a look at if you are a beginner or a seasoned programmer.
I’ve been working with TFS for sometime and when you are using the process flows you need to understand how the workflows work with the work items types.
There are two main types I have worked with Agile and CMMI Process Improvements.
It’s worth knowing how the Castle Windsor IoC work, by default it uses Singletons, where this will work for the most of the time, there are a lot more options available to you depending on your needs. These lifestyles that are available in Castle Windsor are:
Dependency Injection (DI) is an incredibly useful and easy technique which makes your code a lot easier to test.
I like to use samples to explain Dependency Injection. We’ll use a SqlMetaDataProvider class which needs to provide the meta data coming from a SQL Server database. It retrieves the meta data from the database in a relational structure (a DataSet) and then converts it to an easy to use object model. Obviously, i want to be able to test this class without actually going to the database because that would make the tests slow. So how can we test if the relational data is being converted to the object model without going to the database?
After using StructureMap for a while I thought it would be nice to generate a simple example of how it all works, so I’ve built in Visual Studio 2008, both C# and a VB.NET version.
I wrote this small POC, with a little help from samples around the Internet, to retrieve a custom configuration from the application config file (such as web.config)
It uses the Microsoft classes ConfigurationSection, ConfigurationElementCollection, and ConfigurationElement