예제 #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;
        }
예제 #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);
        }