Show / Hide Table of Contents

Class TypedIdTriple

Represents a composite identifier consisting of an agency identifier, item identifier, item version, and item type.

Inheritance
object
Tuple<IdentifierTriple, Guid>
TypedIdTriple
Implements
IStructuralEquatable
IStructuralComparable
IComparable
ITuple
Inherited Members
Tuple<IdentifierTriple, Guid>.Equals(object)
Tuple<IdentifierTriple, Guid>.GetHashCode()
Tuple<IdentifierTriple, Guid>.ToString()
Tuple<IdentifierTriple, Guid>.Item1
Tuple<IdentifierTriple, Guid>.Item2
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
[Serializable]
[Obfuscation(Exclude = true)]
public sealed class TypedIdTriple : Tuple<IdentifierTriple, Guid>, IStructuralEquatable, IStructuralComparable, IComparable, ITuple

Constructors

TypedIdTriple(IdentifierTriple, Guid)

Initializes a new instance of the TypedIdTriple class.

Declaration
public TypedIdTriple(IdentifierTriple identifier, Guid itemType)
Parameters
Type Name Description
IdentifierTriple identifier

The identifier triple.

Guid itemType

The type of the item.

Properties

AgencyId

Gets the agency identifier of the item.

Declaration
[IgnoreDataMember]
public string AgencyId { get; }
Property Value
Type Description
string

CompositeId

Gets the composite identifier triple of the item.

Declaration
[IgnoreDataMember]
public IdentifierTriple CompositeId { get; }
Property Value
Type Description
IdentifierTriple

Identifier

Gets the identifier of the item.

Declaration
[IgnoreDataMember]
public Guid Identifier { get; }
Property Value
Type Description
Guid

ItemType

Gets the type of the item.

Declaration
[IgnoreDataMember]
public Guid ItemType { get; }
Property Value
Type Description
Guid

The type of the item.

Version

Gets the version of the item.

Declaration
[IgnoreDataMember]
public long Version { get; }
Property Value
Type Description
long

Methods

Equals(object)

Determines whether the specified object, is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The object to compare with this instance.

Returns
Type Description
bool

true if the specified object is equal to this instance; otherwise, false.

Overrides
Tuple<IdentifierTriple, Guid>.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
Tuple<IdentifierTriple, Guid>.GetHashCode()

ToString()

Returns a string that represents this instance.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents this instance.

Overrides
Tuple<IdentifierTriple, Guid>.ToString()

TryParse(string, out TypedIdTriple)

Tries to parse an TypedIdTriple from the provided string.

Declaration
public static bool TryParse(string str, out TypedIdTriple idTriple)
Parameters
Type Name Description
string str

The string to parse.

TypedIdTriple idTriple

The identifier triple.

Returns
Type Description
bool

true if the parse was successful; otherwise false.

Operators

operator ==(TypedIdTriple, TypedIdTriple)

Implements the operator ==.

Declaration
public static bool operator ==(TypedIdTriple a, TypedIdTriple b)
Parameters
Type Name Description
TypedIdTriple a

The left side.

TypedIdTriple b

The right side.

Returns
Type Description
bool

The result of the operator.

explicit operator TypedIdTriple(string)

Convert a string to an identifier triple

Declaration
public static explicit operator TypedIdTriple(string id)
Parameters
Type Name Description
string id
Returns
Type Description
TypedIdTriple

operator !=(TypedIdTriple, TypedIdTriple)

Implements the operator !=.

Declaration
public static bool operator !=(TypedIdTriple a, TypedIdTriple b)
Parameters
Type Name Description
TypedIdTriple a

The left side.

TypedIdTriple b

The right side.

Returns
Type Description
bool

The result of the operator.

Implements

IStructuralEquatable
IStructuralComparable
IComparable
ITuple

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX