Beispiel #1
0
        private ITypeServiceBinder InnerSet(Type expectType, bool overiwrite)
        {
            if(expectType == null) throw new ArgumentNullException(nameof(expectType));

            var binder = new TypeServiceBinder(this._container, this, expectType, overiwrite);
            this.TypeBinders.Value.Add(binder);
            return binder;
        }
Beispiel #2
0
        private ITypeServiceBinder InnerSet(Type expectType, bool overiwrite)
        {
            if (expectType == null)
            {
                throw new ArgumentNullException(nameof(expectType));
            }

            var binder = new TypeServiceBinder(this._container, this, expectType, overiwrite);

            this.TypeBinders.Value.Add(binder);
            return(binder);
        }