public int CompareTo(object obj) { if (obj == null) { return(1); } var otherEpoch = obj as Epoch; if (otherEpoch != null) { return(TimestampMilliseconds.CompareTo(otherEpoch.TimestampMilliseconds)); } throw new ArgumentException("Comparing object is not an Epoch"); }
static Resolver() { Array = new Array(); Null = new Null(); Map = new Map(); String = new String(); Record = new Record(); Enum = new Enum(); Fixed = new Fixed(); Union = new Union(); Long = new Long(); Uuid = new Uuid(); Decimal = new Decimal(); Duration = new Duration(); TimestampMilliseconds = new TimestampMilliseconds(); TimestampMicroseconds = new TimestampMicroseconds(); }