Table of Contents

Method Compare

Namespace
AvroSharp.Generic
Assembly
AvroSharp.dll

Compare(AvroValue, AvroValue)

Compares two values of Schema.

public int Compare(AvroValue x, AvroValue y)

Parameters

x AvroValue

The first value.

y AvroValue

The second value.

Returns

int

-1, 0 or 1, as x sorts before, with or after y.

Exceptions

AvroException

A value does not match the schema, two maps are compared, or records are nested more than DefaultMaxDepth levels deep.