@@ -27,19 +27,19 @@ public bool CanConvert(Type type, FormDataMapperOptions options)
27
27
28
28
// We are going to compile a function that maps all the properties for the type.
29
29
// Beware that the code below is not the actual exact code, just a simplification to understand what is happening at a high level.
30
- // The general flow is as follows. For a type like Address { Street, City, Country , ZipCode }
30
+ // The general flow is as follows. For a type like Address { Street, City, CountryRegion , ZipCode }
31
31
// we will generate a function that looks like:
32
32
// public bool TryRead(ref FormDataReader reader, Type type, FormDataSerializerOptions options, out Address? result, out bool found)
33
33
// {
34
34
// bool foundProperty;
35
35
// bool succeeded = true;
36
36
// string street;
37
37
// string city;
38
- // string country ;
38
+ // string countryRegion ;
39
39
// string zipCode;
40
40
// FormDataConveter<string> streetConverter;
41
41
// FormDataConveter<string> cityConverter;
42
- // FormDataConveter<string> countryConverter ;
42
+ // FormDataConveter<string> countryRegionConverter ;
43
43
// FormDataConveter<string> zipCodeConverter;
44
44
45
45
// var streetConverter = options.ResolveConverter(typeof(string));
@@ -54,11 +54,11 @@ public bool CanConvert(Type type, FormDataMapperOptions options)
54
54
// found ||= foundProperty;
55
55
// reader.PopPrefix("City");
56
56
//
57
- // var countryConverter = options.ResolveConverter(typeof(string));
58
- // reader.PushPrefix("Country ");
59
- // succeeded &= countryConverter .TryRead(ref reader, typeof(string), options, out street, out foundProperty);
57
+ // var countryRegionConverter = options.ResolveConverter(typeof(string));
58
+ // reader.PushPrefix("CountryRegion ");
59
+ // succeeded &= countryRegionConverter .TryRead(ref reader, typeof(string), options, out street, out foundProperty);
60
60
// found ||= foundProperty;
61
- // reader.PopPrefix("Country ");
61
+ // reader.PopPrefix("CountryRegion ");
62
62
//
63
63
// var zipCodeConverter = options.ResolveConverter(typeof(string));
64
64
// reader.PushPrefix("ZipCode");
@@ -71,7 +71,7 @@ public bool CanConvert(Type type, FormDataMapperOptions options)
71
71
// result = new Address();
72
72
// result.Street = street;
73
73
// result.City = city;
74
- // result.Country = country ;
74
+ // result.CountryRegion = countryRegion ;
75
75
// result.ZipCode = zipCode;
76
76
// }
77
77
// else
0 commit comments