Beispiel #1
0
        public ConstructorSetting(
            ConstructorSettingsEnum checkMode
            )
        {
            CheckMode = checkMode;

            _constructorArgumentsTypes = new List <ITypeSymbol>();
        }
Beispiel #2
0
        public NewBindingInfo(
            IReadOnlyCollection <INamedTypeSymbol> bindFroms,
            INamedTypeSymbol bindTo,
            IMethodSymbol constructor,
            List <IParameterSymbol> manualConstructorArguments,
            ConstructorSettingsEnum constructorSetting,
            BindScopeEnum bindScope,
            bool isConditional
            )
        {
            if (bindFroms is null)
            {
                throw new ArgumentNullException(nameof(bindFroms));
            }

            if (bindTo is null)
            {
                throw new ArgumentNullException(nameof(bindTo));
            }

            if (constructor is null)
            {
                throw new ArgumentNullException(nameof(constructor));
            }

            if (manualConstructorArguments is null)
            {
                throw new ArgumentNullException(nameof(manualConstructorArguments));
            }

            BindFroms   = bindFroms;
            BindTo      = bindTo;
            Constructor = constructor;
            ManualConstructorArguments = manualConstructorArguments;
            ConstructorSetting         = constructorSetting;
            BindScope     = bindScope;
            IsConditional = isConditional;
        }