Struct ScopedIdentifier
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
IAttributescope
IdentifierScope
Properties
Identifier
Gets the identifier attribute
public readonly IAttribute Identifier { get; }
Property Value
Scope
Gets the scope in which the identifier is valid
public readonly IdentifierScope Scope { get; }
Property Value
Methods
Equals(ScopedIdentifier)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ScopedIdentifier other)
Parameters
other
ScopedIdentifierAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
ScopedIdentifierobj2
ScopedIdentifier
Returns
operator !=(ScopedIdentifier, ScopedIdentifier)
public static bool operator !=(ScopedIdentifier obj1, ScopedIdentifier obj2)
Parameters
obj1
ScopedIdentifierobj2
ScopedIdentifier