Struct DataOrigin
This object help descript the “type” of data. For example, you could assign Customer data a data origin value of 'c'. When comparing data values, the ShardKey/ShardChild will not match if the data origin is not the same value — even if IDs are the same. This helps prevent accidentaly comparisions that are not valid and also prevents collisions if you choose allows values of different types to be stored in the same cache.
Implements
System.IEquatable<System.Object>
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ArgentSea
Assembly: ArgentSea.dll
Syntax
public struct DataOrigin : IEquatable<object>
Constructors
| Improve this Doc View SourceDataOrigin(Char)
Declaration
public DataOrigin(char sourceIndicator)
Parameters
Type | Name | Description |
---|---|---|
System.Char | sourceIndicator |
Properties
| Improve this Doc View SourceSourceIndicator
Declaration
public char SourceIndicator { get; }
Property Value
Type | Description |
---|---|
System.Char |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
Operators
| Improve this Doc View SourceEquality(DataOrigin, DataOrigin)
Declaration
public static bool operator ==(DataOrigin do1, DataOrigin do2)
Parameters
Type | Name | Description |
---|---|---|
DataOrigin | do1 | |
DataOrigin | do2 |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(DataOrigin, DataOrigin)
Declaration
public static bool operator !=(DataOrigin do1, DataOrigin do2)
Parameters
Type | Name | Description |
---|---|---|
DataOrigin | do1 | |
DataOrigin | do2 |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>