Class TypedIdTriple
Represents a composite identifier consisting of an agency identifier, item identifier, item version, and item type.
Inherited Members
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 |
|
Overrides
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
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents this instance. |
Overrides
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 |
|
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. |