private TypeSchema BuildCore(StringSchema w, StringSchema r) { return(new StringSchema(r.RuntimeType)); }
private void VisitCore(StringSchema s) { if (s.RuntimeType == typeof(Uri)) { s.Serializer = new UriSerializer(s); } else if (s.RuntimeType == typeof(decimal)) { s.Serializer = new AsStringSerializer(s); } else if (s.RuntimeType == typeof(DateTimeOffset)) { s.Serializer = new DateTimeOffsetSerializer(s, this.settings.UsePosixTime); } else { s.Serializer = new StringSerializer(s); } }
private TypeSchema BuildCore(StringSchema w, StringSchema r) { return new StringSchema(r.RuntimeType); }