NamespaceModel Constructors

Namespace
Kampute.DocToolkit.Models
Assembly
  • Kampute.DocToolkit.dll
NamespaceModel(IDocumentationContext, string)Initializes a new instance of the NamespaceModel class.
NamespaceModel(IDocumentationContext, string, IEnumerable<TypeModel>)Initializes a new instance of the NamespaceModel class with the specified types.

NamespaceModel(IDocumentationContext, string)

Initializes a new instance of the NamespaceModel class.
public NamespaceModel(IDocumentationContext context, string ns)

Parameters

context IDocumentationContext
The documentation context.
ns string
The namespace represented by this instance.

Exceptions

ArgumentNullException
Thrown when context is null.
ArgumentException
Thrown when ns is null, empty, or contains only whitespace.

NamespaceModel(IDocumentationContext, string, IEnumerable<TypeModel>)

Initializes a new instance of the NamespaceModel class with the specified types.
public NamespaceModel(IDocumentationContext context, string ns, IEnumerable<TypeModel> types)

Parameters

context IDocumentationContext
The documentation context.
ns string
The namespace represented by this instance.
types IEnumerable<TypeModel>
The types defined in the namespace. The types in different namespaces are ignored.

Exceptions

ArgumentNullException
Thrown when context or types is null.
ArgumentException
Thrown when ns is null, empty, or contains only whitespace.

Remarks

The constructor does not validate whether the provided types actually belong to the specified namespace. It is the responsibility of the caller to ensure that the types are correctly associated with the namespace.