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); }
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); }
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; }