コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentedMember"/> class.
 /// </summary>
 /// <param name="classification">The member classification.</param>
 /// <param name="summary">The summary comment.</param>
 /// <param name="remarks">The remarks comment.</param>
 /// <param name="example">The example comment.</param>
 protected DocumentedMember(
     MemberClassification classification,
     SummaryComment summary,
     RemarksComment remarks,
     ExampleComment example)
 {
     _classification = classification;
     _summary        = summary;
     _remarks        = remarks;
     _example        = example;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentedMember"/> class.
 /// </summary>
 /// <param name="classification">The member classification.</param>
 /// <param name="summary">The summary comment.</param>
 /// <param name="remarks">The remarks comment.</param>
 /// <param name="example">The example comment.</param>
 protected DocumentedMember(
     MemberClassification classification, 
     SummaryComment summary, 
     RemarksComment remarks, 
     ExampleComment example)
 {
     _classification = classification;
     _summary = summary;
     _remarks = remarks;
     _example = example;
 }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DocumentedMember"/> class.
        /// </summary>
        /// <param name="classification">The member classification.</param>
        /// <param name="summary">The summary comment.</param>
        /// <param name="remarks">The remarks comment.</param>
        /// <param name="examples">The example comments.</param>
        /// <param name="metadata">The metadata associated with the member.</param>
        protected DocumentedMember(
            MemberClassification classification,
            SummaryComment summary,
            RemarksComment remarks,
            IEnumerable <ExampleComment> examples,
            IDocumentationMetadata metadata)
        {
            if (metadata == null)
            {
                throw new ArgumentNullException(nameof(metadata));
            }

            Classification = classification;
            Summary        = summary;
            Remarks        = remarks;
            Examples       = new List <ExampleComment>(examples ?? Enumerable.Empty <ExampleComment>());
            Metadata       = metadata;
        }
コード例 #4
0
ファイル: DocumentedMember.cs プロジェクト: naasking/website
        /// <summary>
        /// Initializes a new instance of the <see cref="DocumentedMember"/> class.
        /// </summary>
        /// <param name="classification">The member classification.</param>
        /// <param name="summary">The summary comment.</param>
        /// <param name="remarks">The remarks comment.</param>
        /// <param name="examples">The example comments.</param>
        /// <param name="metadata">The metadata associated with the member.</param>
        protected DocumentedMember(
            MemberClassification classification,
            SummaryComment summary, 
            RemarksComment remarks, 
            IEnumerable<ExampleComment> examples,
            IDocumentationMetadata metadata)
        {
            if (metadata == null)
            {
                throw new ArgumentNullException("metadata");
            }

            _classification = classification;
            _summary = summary;
            _remarks = remarks;
            _examples = new List<ExampleComment>(examples ?? Enumerable.Empty<ExampleComment>());
            _metadata = metadata;
        }