示例#1
0
        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");
        }
示例#2
0
 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();
 }