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
contextIDocumentationContext- The documentation context.
nsstring- The namespace represented by this instance.
Exceptions
- ArgumentNullException
- Thrown when
contextisnull. - ArgumentException
- Thrown when
nsisnull, 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
contextIDocumentationContext- The documentation context.
nsstring- The namespace represented by this instance.
typesIEnumerable<TypeModel>- The types defined in the namespace. The types in different namespaces are ignored.
Exceptions
- ArgumentNullException
- Thrown when
contextortypesisnull. - ArgumentException
- Thrown when
nsisnull, 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.
