PublicApiDeclarationStyle Enum

The style of the C# code produced by PublicApiFormatter.

public enum PublicApiDeclarationStyle

Fields

NameValueDescription
Declaration0A declaration suitable for display, without implementation: no member bodies, no constructor initializers, no type body. Attributes are written on their own lines before the declaration, generic constraints are written after the signature, and properties list their accessors (e.g. public int Value { get; protected set; }). Type names are fully qualified unless PublicApiFormattingOptions.QualifyTypeNames is false.
Compilable1The compilable stub produced by PublicApi.Generate (e.g. public int M() => throw null;). Formatting a type produces the type with all its members and nested types.