Class TypeDefinition
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
NamestringThe name of the type.
NamespacestringThe namespace the type belongs to.
FullNamestringThe fully qualified name of the type.
KindTypeKindThe kind of type (class, interface, struct, etc.).
MembersIReadOnlyList<MemberDefinition>The members defined on this type.
IsAbstractboolWhether the type is abstract.
Properties
FullName
The fully qualified name of the type.
public string FullName { get; init; }
Property Value
IsAbstract
Whether the type is abstract.
public bool IsAbstract { get; init; }
Property Value
Kind
The kind of type (class, interface, struct, etc.).
public TypeKind Kind { get; init; }
Property Value
Members
The members defined on this type.
public IReadOnlyList<MemberDefinition> Members { get; init; }
Property Value
Name
The name of the type.
public string Name { get; init; }
Property Value
Namespace
The namespace the type belongs to.
public string Namespace { get; init; }