/// <summary> /// Initializes a new instance of <see cref="MemberDocumentationBase" /> class. /// </summary> /// <param name="typeDoc">The value for the <see cref="MemberDocumentationBase{M}.Type" /> property.</param> /// <param name="member">The value for the <see cref="MemberDocumentationBase{M}.ClrMember" /> property.</param> /// <param name="xml">The value for the <see cref="DocumentableBase.Xml" /> property.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="typeDoc" /> and/or <paramref name="member" /> are <see langword="null" />. /// </exception> protected MemberDocumentationBase(TypeDocumentation typeDoc, M member, XElement xml) : base(xml: xml) { if (typeDoc == null) { throw new ArgumentNullException("typeDoc"); } if (member == null) { throw new ArgumentNullException("member"); } this.Type = typeDoc; this.ClrMember = member; }
internal FieldDocumentation(TypeDocumentation typeDoc, FieldInfo field, XElement xml) : base(typeDoc, field, xml) { }
internal PropertyDocumentation(TypeDocumentation typeDoc, PropertyInfo property, XElement xml) : base(typeDoc, property, xml) { }
internal MethodDocumentation(TypeDocumentation typeDoc, MethodInfo method, XElement xml) : base(typeDoc, method, xml) { }
internal ConstructorDocumentation(TypeDocumentation typeDoc, ConstructorInfo constructor, XElement xml) : base(typeDoc, constructor, xml) { }
internal EventDocumentation(TypeDocumentation typeDoc, EventInfo @event, XElement xml) : base(typeDoc, @event, xml) { }