コード例 #1
0
        Func <object>?Build(object?key, Type type)
        {
            var buildContext = new BuildContext(this);
            var registration = buildContext.ResolveNeedBy(type, key);

            return(registration != null?BuildFromRegistration(registration, buildContext) : null);
        }
コード例 #2
0
        Func <object> Build(object key, Type type)
        {
            var buildContext = new BuildContext(this);
            var registration = buildContext.ResolveNeedBy(type, key);

            if (registration != null)
            {
                return(BuildFromRegistration(registration, buildContext));
            }
            return(null);
        }
コード例 #3
0
ファイル: ContainerImpl.cs プロジェクト: Xamarui/BTDB
 Func<object> Build(object key, Type type)
 {
     var buildContext = new BuildContext(this);
     var registration = buildContext.ResolveNeedBy(type, key);
     if (registration != null)
     {
         return BuildFromRegistration(registration, buildContext);
     }
     return null;
 }