Beispiel #1
0
        public TypeDocumentationMarkdownWriter(IAssemblyDocumentationReader assemblyDocumentationReader, Type type)
        {
            if (assemblyDocumentationReader == null)
            {
                throw new ArgumentNullException(nameof(assemblyDocumentationReader));
            }

            _assemblyDocumentationReader = assemblyDocumentationReader;
            _type = type;
            _typeDocumentation = assemblyDocumentationReader.GetDocumentationOf(type);
            _subWriters        = new List <IMarkdownWriter>();
        }
Beispiel #2
0
        public AssemblyDocumentationCreator(Assembly assembly,
                                            Dispatcher dispatcher,
                                            ResourceDictionary resourceDictionary)
        {
            if (assembly == null)
            {
                throw new ArgumentNullException(nameof(assembly));
            }

            _dispatcher         = dispatcher;
            _resourceDictionary = resourceDictionary;
            _types = new List <ITypeDocumentationCreator>();
            _assemblyDocumentationReader = GetAssemblyDocumentation(assembly);
        }