Table of Contents

Class Dependency

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

Represents a dependency between two entities in a project.

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

Constructors

Dependency(Guid, Guid, DependencyType)

Represents a dependency between two entities in a project.

public Dependency(Guid SourceId, Guid TargetId, DependencyType Type)

Parameters

SourceId Guid

The unique identifier of the source entity.

TargetId Guid

The unique identifier of the target entity.

Type DependencyType

The type of dependency (e.g., project or package reference).

Properties

SourceId

The unique identifier of the source entity.

public Guid SourceId { get; init; }

Property Value

Guid

TargetId

The unique identifier of the target entity.

public Guid TargetId { get; init; }

Property Value

Guid

Type

The type of dependency (e.g., project or package reference).

public DependencyType Type { get; init; }

Property Value

DependencyType