Ejemplo n.º 1
0
        private DescriptionContext(IApiDocumentation apiDocumentation, ITypeDescriptionBuilder typeDescriptionBuilder, Type type, IDictionary<Type, Tuple<IClass, bool, bool>> typeDefinitions)
        {
            if (apiDocumentation == null)
            {
                throw new ArgumentNullException("apiDocumentation");
            }

            if (typeDescriptionBuilder == null)
            {
                throw new ArgumentNullException("typeDescriptionBuilder");
            }

            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            if (typeDefinitions == null)
            {
                throw new ArgumentNullException("typeDefinitions");
            }

            ApiDocumentation = apiDocumentation;
            TypeDescriptionBuilder = typeDescriptionBuilder;
            Type = type;
            _typeDefinitions = typeDefinitions;
        }
Ejemplo n.º 2
0
        private DescriptionContext(IApiDocumentation apiDocumentation, ITypeDescriptionBuilder typeDescriptionBuilder, Type type, IDictionary <Type, Tuple <IClass, bool, bool> > typeDefinitions)
        {
            if (apiDocumentation == null)
            {
                throw new ArgumentNullException("apiDocumentation");
            }

            if (typeDescriptionBuilder == null)
            {
                throw new ArgumentNullException("typeDescriptionBuilder");
            }

            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            if (typeDefinitions == null)
            {
                throw new ArgumentNullException("typeDefinitions");
            }

            ApiDocumentation       = apiDocumentation;
            TypeDescriptionBuilder = typeDescriptionBuilder;
            Type             = type;
            _typeDefinitions = typeDefinitions;
        }
Ejemplo n.º 3
0
        public static DescriptionContext ForType(IApiDocumentation apiDocumentation, Type type, ITypeDescriptionBuilder typeDescriptionBuilder)
        {
            if (apiDocumentation == null)
            {
                throw new ArgumentNullException("apiDocumentation");
            }

            if (typeDescriptionBuilder == null)
            {
                throw new ArgumentNullException("typeDescriptionBuilder");
            }

            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            return new DescriptionContext(apiDocumentation, typeDescriptionBuilder, type, new Dictionary<Type, Tuple<IClass, bool, bool>>());
        }
Ejemplo n.º 4
0
        public static DescriptionContext ForType(IApiDocumentation apiDocumentation, Type type, ITypeDescriptionBuilder typeDescriptionBuilder)
        {
            if (apiDocumentation == null)
            {
                throw new ArgumentNullException("apiDocumentation");
            }

            if (typeDescriptionBuilder == null)
            {
                throw new ArgumentNullException("typeDescriptionBuilder");
            }

            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            return(new DescriptionContext(apiDocumentation, typeDescriptionBuilder, type, new Dictionary <Type, Tuple <IClass, bool, bool> >()));
        }