Table of Contents

Class Decision

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

Represents a single (architecture) decision, as described at http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions

[DataContract]
public sealed class Decision
Inheritance
Decision
Inherited Members

Properties

Content

Contains the decision body in the configured markup format.

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

Property Value

string

Date

Records when the decision was made.

[DataMember(Name = "date", EmitDefaultValue = false)]
public DateTime Date { get; }

Property Value

DateTime

Element

References the model element that owns this decision, when the decision is scoped below the workspace.

public Element Element { get; }

Property Value

Element

ElementId

The ID of the element.

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

Property Value

string

Format

Describes the markup format used by Content.

[DataMember(Name = "format", EmitDefaultValue = true)]
public Format Format { get; }

Property Value

Format

Id

Uniquely identifies the decision within its scope.

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

Property Value

string

Status

Indicates the lifecycle state of the decision.

[DataMember(Name = "status", EmitDefaultValue = true)]
public DecisionStatus Status { get; }

Property Value

DecisionStatus

Title

Supplies the short human-readable title for the decision.

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

Property Value

string

Methods

Equals(Decision)

Determines whether another decision has the same scope and identifier.

public bool Equals(Decision decision)

Parameters

decision Decision

The decision to compare with this instance.

Returns

bool

true when both decisions refer to the same element scope and identifier; otherwise, false.

Equals(object)

Determines whether another object represents the same decision.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true when obj is an equivalent Decision; otherwise, false.

GetHashCode()

Computes a hash code from the scoped decision identifier.

public override int GetHashCode()

Returns

int

A hash code suitable for decision set membership.