Interface IMergeable<T>
An equatable element that can be merged using 3-way merging.
Namespace: NanoByte.Common.Dispatch
Assembly: NanoByte.Common.dll
Syntax
public interface IMergeable<T>
Type Parameters
Name | Description |
---|---|
T | The type the interface is being applied to. |
Properties
MergeID
A unique identifier used when comparing for merging. Should always remain the same, even when the element is modified.
Declaration
string MergeID { get; }
Property Value
Type | Description |
---|---|
String |
Timestamp
The time this element was last modified. This is used to determine precedence with sync conflicts.
Declaration
DateTime Timestamp { get; }
Property Value
Type | Description |
---|---|
DateTime |
Remarks
This value should be ignored by clone and equality methods.