icsharpcode/ILSpy — Issue #293: Missing Generic Type
Author: cobra300
Created: 2011-11-24 02:13:48+00:00
State: open

The following code snippet is from [Prism 4](http://compositewpf.codeplex.com/) "Hello world" sample:
```
class Bootstrapper : UnityBootstrapper
{
protected override DependencyObject CreateShell()
{
return this.Container.Resolve();
}
.....
}
```
Decompiled code:
```
protected override DependencyObject CreateShell()
{
return base.Container.Resolve(new ResolverOverride[0]);
}
```

IL code looks better:
```
call !!0 [Microsoft.Practices.Unity]Microsoft.Practices.Unity.UnityContainerExtensions::Resolve(class [Microsoft.Practices.Unity]Microsoft.Practices.Unity.IUnityContainer, class [Microsoft.Practices.Unity]Microsoft.Practices.Unity.ResolverOverride[])
```