コード例 #1
0
ファイル: DocumentModel.cs プロジェクト: jujis008/docu
        public DocumentModel(ICommentParser commentParser, IEventAggregator eventAggregator)
        {
            Namespaces = new NamespaceGenerator(matchedAssociations);
            Types = new TypeGenerator(matchedAssociations, commentParser);
            Methods = new MethodGenerator(matchedAssociations, commentParser);
            Properties = new PropertyGenerator(matchedAssociations, commentParser);
            Events = new EventGenerator(matchedAssociations, commentParser);
            Fields = new FieldGenerator(matchedAssociations, commentParser);

            this.eventAggregator = eventAggregator;

            steps = new List<IGenerationStep>
            {
                new GenerationStep<IDocumentationMember>(Namespaces.Add),
                new GenerationStep<DocumentedType>(Types.Add),
                new GenerationStep<DocumentedMethod>(Methods.Add),
                new GenerationStep<DocumentedProperty>(Properties.Add),
                new GenerationStep<DocumentedEvent>(Events.Add),
                new GenerationStep<DocumentedField>(Fields.Add),
            };
        }
コード例 #2
0
        public DocumentModel(ICommentParser commentParser, IEventAggregator eventAggregator)
        {
            Namespaces = new NamespaceGenerator(matchedAssociations);
            Types      = new TypeGenerator(matchedAssociations, commentParser);
            Methods    = new MethodGenerator(matchedAssociations, commentParser);
            Properties = new PropertyGenerator(matchedAssociations, commentParser);
            Events     = new EventGenerator(matchedAssociations, commentParser);
            Fields     = new FieldGenerator(matchedAssociations, commentParser);

            this.eventAggregator = eventAggregator;

            steps = new List <IGenerationStep>
            {
                new GenerationStep <IDocumentationMember>(Namespaces.Add),
                new GenerationStep <DocumentedType>(Types.Add),
                new GenerationStep <DocumentedMethod>(Methods.Add),
                new GenerationStep <DocumentedProperty>(Properties.Add),
                new GenerationStep <DocumentedEvent>(Events.Add),
                new GenerationStep <DocumentedField>(Fields.Add),
            };
        }