File tree Expand file tree Collapse file tree
sample/CountryData.Sample.Console Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55
66var countryData = countryHelper . GetCountryData ( ) . Take ( 10 ) ;
7- foreach ( var country in countryData )
7+ foreach ( var countryItem in countryData )
88{
9- Console . WriteLine ( $ "{ country . CountryName } ({ country . CountryShortCode } ) has { country . Regions . Count } regions") ;
9+ Console . WriteLine ( $ "{ countryItem . CountryName } ({ countryItem . CountryShortCode } ) has { countryItem . Regions . Count } regions") ;
1010}
1111
1212
13- var countryByCode = countryHelper . GetCountry ( "GHA" ) . ToList ( ) ;
14- foreach ( var country in countryByCode )
15- {
16- Console . WriteLine ( $ "{ country . CountryName } ({ country . CountryShortCode } ) has { country . Regions . Count } regions") ;
17- }
13+ var country = countryHelper . GetCountryByCode ( "GH" ) ;
14+ Console . WriteLine ( $ "{ country . CountryName } ({ country . CountryShortCode } ) has { country . Regions . Count } regions") ;
15+
Original file line number Diff line number Diff line change 1- using CountryData . Standard ;
2- using System ;
3- using System . Collections . Generic ;
1+ using System . Collections . Generic ;
42
53namespace CountryData . Standard
64{
Original file line number Diff line number Diff line change 11using Newtonsoft . Json ;
2- using System ;
32using System . Collections . Generic ;
43using System . IO ;
54using System . Linq ;
65using System . Reflection ;
7- using System . Text ;
86
97namespace CountryData . Standard
108{
Original file line number Diff line number Diff line change 11using System ;
2- using System . Collections . Generic ;
3- using System . Text ;
42
53namespace CountryData . Standard
64{
You can’t perform that action at this time.
0 commit comments