Table of Contents

Class TypeDefinition

Namespace
ProjGraph.Core.Models
Assembly
ProjGraph.Core.dll

Represents a type definition in a class diagram.

public record TypeDefinition : IEquatable<TypeDefinition>
Inheritance
TypeDefinition
Implements
Inherited Members

Constructors

TypeDefinition(string, string, string, TypeKind, IReadOnlyList<MemberDefinition>, bool)

Represents a type definition in a class diagram.

public TypeDefinition(string Name, string Namespace, string FullName, TypeKind Kind, IReadOnlyList<MemberDefinition> Members, bool IsAbstract = false)

Parameters

Name string

The name of the type.

Namespace string

The namespace the type belongs to.

FullName string

The fully qualified name of the type.

Kind TypeKind

The kind of type (class, interface, struct, etc.).

Members IReadOnlyList<MemberDefinition>

The members defined on this type.

IsAbstract bool

Whether the type is abstract.

Properties

FullName

The fully qualified name of the type.

public string FullName { get; init; }

Property Value

string

IsAbstract

Whether the type is abstract.

public bool IsAbstract { get; init; }

Property Value

bool

Kind

The kind of type (class, interface, struct, etc.).

public TypeKind Kind { get; init; }

Property Value

TypeKind

Members

The members defined on this type.

public IReadOnlyList<MemberDefinition> Members { get; init; }

Property Value

IReadOnlyList<MemberDefinition>

Name

The name of the type.

public string Name { get; init; }

Property Value

string

Namespace

The namespace the type belongs to.

public string Namespace { get; init; }

Property Value

string