Fork me on GitHubEpicdominant domains
APIEpic.Query.ObjectContravariantOrder<(Of <(<'TEntity, TSpecializedEntity>)>)>Compare(TSpecializedEntity, TSpecializedEntity)

Compare Method (x, y)
Compares two TSpecializedEntity and returns a value indicating whether one is less than, equal to, or greater than the other.

Assembly: Epic.Query.Object

Declaration Syntax
C#
public override int Compare(
	TSpecializedEntity x,
	TSpecializedEntity y
)
Parameters
x (TSpecializedEntity)
The first TSpecializedEntity.
y (TSpecializedEntity)
The second TSpecializedEntity.
Return Value
0 if x and y are equivalent for the current order criterion, a positive number if x goes after y and a negative number if x goes before y.
Remarks
The comparison is delegated to the wrapped OrderCriterion<(Of <(<'TEntity>)>)> that was provided in the constructor.
Exceptions
ExceptionCondition
InvalidOperationExceptionx and y cannot be sorted by the current criterion.
blog comments powered by Disqus