Created
July 24, 2012 06:38
-
-
Save dfang/3168409 to your computer and use it in GitHub Desktop.
nop 修改两行代码提高性能30%
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public T Resolve<T>() where T : class | |
{ | |
return ContainerManager.Container.IsRegistered<T>()?ContainerManager.Resolve<T>():null; | |
} | |
public object Resolve(Type type) | |
{ | |
return ContainerManager.Container.IsRegistered(type)?ContainerManager.Resolve(type):null; | |
} | |
改成只剩下这两个方法 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment