Show / Hide Table of Contents

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.

Extension Methods

UpdateUtils.To<TIn, TOut>(TIn, Func<TIn, TOut>)
JsonStorage.SaveJson<T>(T, Stream)
JsonStorage.SaveJson<T>(T, String)
JsonStorage.ToJsonString<T>(T)
JsonStorage.ReparseAsJson<T>(Object)
JsonStorage.ReparseAsJson<T>(Object, T)
XmlStorage.SaveXml(Object, Stream, String)
XmlStorage.SaveXml<T>(T, String, String)
XmlStorage.ToXmlString(Object, String)
ConversionUtils.ConvertToString<TType>(TType)
In This Article
Back to top Copyright Bastian Eicher