Ejemplo n.º 1
0
 public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) =>
 BillingId.Parse(serializer.Deserialize <string>(reader));
Ejemplo n.º 2
0
 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) =>
 value is string?BillingId.Parse(value as string) : null;