Definition

Assembly: CloudNimble.DotNetDocs.Core.dll Namespace: CloudNimble.DotNetDocs.Core Inheritance: CloudNimble.DotNetDocs.Core.DocEntity

Syntax

CloudNimble.DotNetDocs.Core.DocType

Summary

Represents documentation for a .NET type.

Remarks

Contains metadata about a type (class, interface, struct, enum, delegate) and its members, extracted from Roslyn symbols and enhanced with conceptual documentation.

Constructors

.ctor

Initializes a new instance of the DocType class.

Syntax

public DocType(Microsoft.CodeAnalysis.ITypeSymbol symbol)

Parameters

NameTypeDescription
symbolMicrosoft.CodeAnalysis.ITypeSymbolThe Roslyn type symbol.

Exceptions

ExceptionDescription
ArgumentNullExceptionThrown when symbol is null.

Properties

AssemblyName

Gets or sets the containing assembly name.

Syntax

public string AssemblyName { get; set; }

Property Value

Type: string? The name of the assembly containing this type.

BaseType

Gets the base type name, if any.

Syntax

public string BaseType { get; set; }

Property Value

Type: string? The name of the base type, or null if none exists.

FullName

Gets or sets the fully qualified name of the type.

Syntax

public string FullName { get; set; }

Property Value

Type: string? The fully qualified type name including namespace.

Members

Gets the collection of members (methods, properties, fields, events, etc.).

Syntax

public System.Collections.Generic.List<CloudNimble.DotNetDocs.Core.DocMember> Members { get; }

Property Value

Type: System.Collections.Generic.List<CloudNimble.DotNetDocs.Core.DocMember> List of documented members within this type.

Name

Gets or sets the name of the type.

Syntax

public string Name { get; set; }

Property Value

Type: string The type name.

Signature

Gets or sets the signature of the type.

Syntax

public string Signature { get; set; }

Property Value

Type: string? The type signature including modifiers, inheritance, etc.

Symbol

Gets the Roslyn symbol for the type.

Syntax

public Microsoft.CodeAnalysis.ITypeSymbol Symbol { get; }

Property Value

Type: Microsoft.CodeAnalysis.ITypeSymbol The underlying Roslyn type symbol containing metadata.

TypeKind

Gets or sets the type kind.

Syntax

public Microsoft.CodeAnalysis.TypeKind TypeKind { get; set; }

Property Value

Type: Microsoft.CodeAnalysis.TypeKind? The kind of type (Class, Interface, Struct, Enum, Delegate, etc.).