@@ -27,19 +27,19 @@ public bool CanConvert(Type type, FormDataMapperOptions options)
2727
2828 // We are going to compile a function that maps all the properties for the type.
2929 // 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 }
3131 // we will generate a function that looks like:
3232 // public bool TryRead(ref FormDataReader reader, Type type, FormDataSerializerOptions options, out Address? result, out bool found)
3333 // {
3434 // bool foundProperty;
3535 // bool succeeded = true;
3636 // string street;
3737 // string city;
38- // string country ;
38+ // string countryRegion ;
3939 // string zipCode;
4040 // FormDataConveter<string> streetConverter;
4141 // FormDataConveter<string> cityConverter;
42- // FormDataConveter<string> countryConverter ;
42+ // FormDataConveter<string> countryRegionConverter ;
4343 // FormDataConveter<string> zipCodeConverter;
4444
4545 // var streetConverter = options.ResolveConverter(typeof(string));
@@ -54,11 +54,11 @@ public bool CanConvert(Type type, FormDataMapperOptions options)
5454 // found ||= foundProperty;
5555 // reader.PopPrefix("City");
5656 //
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);
6060 // found ||= foundProperty;
61- // reader.PopPrefix("Country ");
61+ // reader.PopPrefix("CountryRegion ");
6262 //
6363 // var zipCodeConverter = options.ResolveConverter(typeof(string));
6464 // reader.PushPrefix("ZipCode");
@@ -71,7 +71,7 @@ public bool CanConvert(Type type, FormDataMapperOptions options)
7171 // result = new Address();
7272 // result.Street = street;
7373 // result.City = city;
74- // result.Country = country ;
74+ // result.CountryRegion = countryRegion ;
7575 // result.ZipCode = zipCode;
7676 // }
7777 // else
0 commit comments