Table of Contents

Method Compare

Namespace
Kepware.Api.Util
Assembly
Kepware.Api.dll

Compare<T>(T?, T?)

Compares two entities and returns the comparison result.

public static EntityCompare.CompareResult Compare<T>(T? left, T? right) where T : NamedEntity

Parameters

left T

The left entity.

right T

The right entity.

Returns

EntityCompare.CompareResult

The comparison result.

Type Parameters

T

The type of the entity.

Compare<T, K>(T?, T?)

Compares two collections of entities and returns the comparison results.

public static EntityCompare.CollectionResultBucket<K> Compare<T, K>(T? left, T? right) where T : EntityCollection<K> where K : NamedEntity

Parameters

left T

The left entity collection.

right T

The right entity collection.

Returns

EntityCompare.CollectionResultBucket<K>

The comparison results.

Type Parameters

T

The type of the entity collection.

K

The type of the entity.

Compare<T, K>(T?, T?, Func<K, string>)

Compares two collections of entities and returns the comparison results.

public static EntityCompare.CollectionResultBucket<K> Compare<T, K>(T? left, T? right, Func<K, string> keySelector) where T : EntityCollection<K> where K : NamedEntity

Parameters

left T

The left entity collection.

right T

The right entity collection.

keySelector Func<K, string>

The function to select the key for comparison.

Returns

EntityCompare.CollectionResultBucket<K>

The comparison results.

Type Parameters

T

The type of the entity collection.

K

The type of the entity.