Table of Contents

Class ObjectComparer

Namespace
Shift.Common
Assembly
Shift.Common.dll
public static class ObjectComparer
Inheritance
ObjectComparer
Inherited Members

Methods

CompareDataRow(DataRow, DataRow, ICollection<string>, ICollection<string>)

public static DifferenceCollection CompareDataRow(DataRow before, DataRow after, ICollection<string> inclusions = null, ICollection<string> exclusions = null)

Parameters

before DataRow
after DataRow
inclusions ICollection<string>
exclusions ICollection<string>

Returns

DifferenceCollection

Compare<T>(Dictionary<PropertyInfo, object>, T, ICollection<string>)

public static DifferenceCollection Compare<T>(Dictionary<PropertyInfo, object> before, T after, ICollection<string> exclusions = null)

Parameters

before Dictionary<PropertyInfo, object>
after T
exclusions ICollection<string>

Returns

DifferenceCollection

Type Parameters

T

Compare<T>(T, T, ICollection<string>, ICollection<Type>)

public static DifferenceCollection Compare<T>(T before, T after, ICollection<string> exclusions = null, ICollection<Type> additionalIncludedTypes = null)

Parameters

before T
after T
exclusions ICollection<string>
additionalIncludedTypes ICollection<Type>

Returns

DifferenceCollection

Type Parameters

T

GetSnapshot<T>(T, ICollection<string>)

public static Dictionary<PropertyInfo, object> GetSnapshot<T>(T obj, ICollection<string> exclusions = null)

Parameters

obj T
exclusions ICollection<string>

Returns

Dictionary<PropertyInfo, object>

Type Parameters

T

IsChanged<T>(T, T, ICollection<string>)

public static bool IsChanged<T>(T before, T after, ICollection<string> exclusions = null)

Parameters

before T
after T
exclusions ICollection<string>

Returns

bool

Type Parameters

T