private void VisitCore(LongSchema s) { if (s.RuntimeType == typeof(DateTime)) { s.Serializer = new DateTimeSerializer(s, this.settings.UsePosixTime); } else if (s.RuntimeType == typeof(DateTimeOffset)) { s.Serializer = new DateTimeOffsetSerializer(s, this.settings.UsePosixTime); } else { s.Serializer = new LongSerializer(s); } }
private TypeSchema BuildCore(LongSchema w, DoubleSchema r) { return new LongSchema(r.RuntimeType); }
private TypeSchema BuildCore(IntSchema w, LongSchema r) { return new IntSchema(r.RuntimeType); }