Table of Contents

Class MemberDefinition

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

Represents a member definition within a type.

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

Constructors

MemberDefinition(string, string, Visibility, MemberKind, IReadOnlyList<ParameterDefinition>?)

Represents a member definition within a type.

public MemberDefinition(string Name, string Type, Visibility Visibility, MemberKind Kind, IReadOnlyList<ParameterDefinition>? Parameters = null)

Parameters

Name string

The name of the member.

Type string

The type of the member.

Visibility Visibility

The visibility of the member.

Kind MemberKind

The kind of member (field, property, method).

Parameters IReadOnlyList<ParameterDefinition>

The parameters if this member is a method.

Properties

Kind

The kind of member (field, property, method).

public MemberKind Kind { get; init; }

Property Value

MemberKind

Name

The name of the member.

public string Name { get; init; }

Property Value

string

Parameters

The parameters if this member is a method.

public IReadOnlyList<ParameterDefinition>? Parameters { get; init; }

Property Value

IReadOnlyList<ParameterDefinition>

Type

The type of the member.

public string Type { get; init; }

Property Value

string

Visibility

The visibility of the member.

public Visibility Visibility { get; init; }

Property Value

Visibility