Table of Contents

Struct ScopedIdentifier

Namespace
NMF.Models
Assembly
NMF.Models.dll

Denotes the tuple of an attribute and its scope

public struct ScopedIdentifier : IEquatable<ScopedIdentifier>
Implements
Inherited Members

Constructors

ScopedIdentifier(IAttribute, IdentifierScope)

Creates a new scoped identifier

public ScopedIdentifier(IAttribute identifier, IdentifierScope scope)

Parameters

identifier IAttribute
scope IdentifierScope

Properties

Identifier

Gets the identifier attribute

public readonly IAttribute Identifier { get; }

Property Value

IAttribute

Scope

Gets the scope in which the identifier is valid

public readonly IdentifierScope Scope { get; }

Property Value

IdentifierScope

Methods

Equals(ScopedIdentifier)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ScopedIdentifier other)

Parameters

other ScopedIdentifier

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override readonly int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(ScopedIdentifier, ScopedIdentifier)

public static bool operator ==(ScopedIdentifier obj1, ScopedIdentifier obj2)

Parameters

obj1 ScopedIdentifier
obj2 ScopedIdentifier

Returns

bool

operator !=(ScopedIdentifier, ScopedIdentifier)

public static bool operator !=(ScopedIdentifier obj1, ScopedIdentifier obj2)

Parameters

obj1 ScopedIdentifier
obj2 ScopedIdentifier

Returns

bool