Table of Contents

Class Perspective

Namespace
C4.Net
Assembly
C4.Net.Core.dll

Represents an architectural perspective, that can be applied to elements and relationships. See https://www.viewpoints-and-perspectives.info/home/perspectives/ for more details of this concept

[DataContract]
public sealed class Perspective : IEquatable<Perspective>
Inheritance
Perspective
Implements
Inherited Members

Properties

Description

The content of this perspective.

[DataMember(Name = "description", EmitDefaultValue = false)]
public string Description { get; }

Property Value

string

Name

The name of this perspective.

[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; }

Property Value

string

Methods

Equals(Perspective)

Compares this perspective with another by name.

public bool Equals(Perspective other)

Parameters

other Perspective

The perspective to compare with.

Returns

bool

true when both perspectives have the same name; otherwise, false.

Equals(object)

Compares this perspective with another object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with.

Returns

bool

true when obj is a matching Perspective; otherwise, false.

GetHashCode()

Returns a hash code derived from the perspective name.

public override int GetHashCode()

Returns

int

A hash code for the current perspective.