public override void WriteDocumentation(DocumentationWriter writer)
        {
            writer.WriteLinkTarget(this);
            writer.WriteLine($"`{Name}` {Field.GetConstantValue()}  ");

            writer.Write(this, Documentation.GetSummary());

            writer.Write("### Example", Documentation.GetExample(), this);
            writer.Write("### Remarks", Documentation.GetRemarks(), this);
        }
Exemple #2
0
        public override void WriteDocumentation(DocumentationWriter writer)
        {
            writer.WriteLinkTarget(this);
            writer.WriteLine($"`{TypeParameter.Name}`  ");
            writer.Write(this, Documentation);

            if (TypeParameter.TypeConstraints.Any(c => !c.Type.IsObjectOrValueType()))
            {
                writer.Break();

                writer.Write("Constraints ");
                writer.Write(string.Join(", ", TypeParameter.TypeConstraints.Select(c => c.Type).Where(t => !t.IsObjectOrValueType()).Select(writer.GetTypeLink)));
                writer.WriteLine("  ");
            }
        }
Exemple #3
0
 public override void WriteDocumentation(DocumentationWriter writer)
 {
     writer.WriteLinkTarget(this);
     writer.WriteLine($"`{Parameter.Name}` {writer.GetTypeLink(this, Parameter.Type)}  ");
     writer.Write(this, Documentation);
 }
 public override void WriteDocumentation(DocumentationWriter writer)
 {
     writer.WriteLinkTarget(this);
     writer.WriteLine($"`{TypeParameter.Name}`  ");
     writer.Write(this, Documentation);
 }