I am looking for a really simple and lightweight IoC Container whose C# source can be included in my own project (thus not making an external reference).
The reason for this is that I am writing an infrastructure and would like to provide a single .dll file, without any additional dependencies.
I also do not want to ILMerge my assembly with the IoC assembly..
I thought about MEF, some other suggestions?
If you're using .NET 4.0 you have MEF included.
For .NET 2 I once wrote something similar using interfaces and Reflection. There are a lot of tutorials out there describing that process. Even if you can use MEF, its still worth attempting some reflection tutorials as this is how MEF works underneath.
Also check out this question which has some good answers. TinyIoC looks like its just a single source file.