File tree Expand file tree Collapse file tree 7 files changed +40
-42
lines changed
src/Nager.Country/CountryInfos Expand file tree Collapse file tree 7 files changed +40
-42
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public sealed class KenyaCountryInfo : ICountryInfo
2626 public int NumericCode => 404 ;
2727
2828 /// <inheritdoc/>
29- public string [ ] TLD => new [ ] { ".ke" } ;
29+ public string [ ] TLD => [ ".ke" ] ;
3030
3131 /// <inheritdoc/>
3232 public Region Region => Region . Africa ;
@@ -35,19 +35,19 @@ public sealed class KenyaCountryInfo : ICountryInfo
3535 public SubRegion SubRegion => SubRegion . EasternAfrica ;
3636
3737 /// <inheritdoc/>
38- public Alpha2Code [ ] BorderCountries => new Alpha2Code [ ]
39- {
38+ public Alpha2Code [ ] BorderCountries =>
39+ [
4040 Alpha2Code . ET ,
4141 Alpha2Code . SO ,
4242 Alpha2Code . SS ,
4343 Alpha2Code . TZ ,
4444 Alpha2Code . UG ,
45- } ;
45+ ] ;
4646
4747 /// <inheritdoc/>
48- public ICurrency [ ] Currencies => new [ ] { new KesCurrency ( ) } ;
48+ public ICurrency [ ] Currencies => [ new KesCurrency ( ) ] ;
4949
5050 /// <inheritdoc/>
51- public string [ ] CallingCodes => new [ ] { "254" } ;
51+ public string [ ] CallingCodes => [ "254" ] ;
5252 }
5353}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public sealed class KiribatiCountryInfo : ICountryInfo
2626 public int NumericCode => 296 ;
2727
2828 /// <inheritdoc/>
29- public string [ ] TLD => new [ ] { ".ki" } ;
29+ public string [ ] TLD => [ ".ki" ] ;
3030
3131 /// <inheritdoc/>
3232 public Region Region => Region . Oceania ;
@@ -35,14 +35,12 @@ public sealed class KiribatiCountryInfo : ICountryInfo
3535 public SubRegion SubRegion => SubRegion . Micronesia ;
3636
3737 /// <inheritdoc/>
38- public Alpha2Code [ ] BorderCountries => new Alpha2Code [ ]
39- {
40- } ;
38+ public Alpha2Code [ ] BorderCountries => [ ] ;
4139
4240 /// <inheritdoc/>
43- public ICurrency [ ] Currencies => new [ ] { new AudCurrency ( ) } ;
41+ public ICurrency [ ] Currencies => [ new AudCurrency ( ) ] ;
4442
4543 /// <inheritdoc/>
46- public string [ ] CallingCodes => new [ ] { "686" } ;
44+ public string [ ] CallingCodes => [ "686" ] ;
4745 }
4846}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public sealed class KosovoCountryInfo : ICountryInfo
3030
3131 /// <inheritdoc/>
3232 /// <remarks>Reserved, unofficial</remarks>
33- public string [ ] TLD => new [ ] { ".xk" } ;
33+ public string [ ] TLD => [ ".xk" ] ;
3434
3535 /// <inheritdoc/>
3636 public Region Region => Region . Europe ;
@@ -39,19 +39,19 @@ public sealed class KosovoCountryInfo : ICountryInfo
3939 public SubRegion SubRegion => SubRegion . SouthernEurope ;
4040
4141 /// <inheritdoc/>
42- public Alpha2Code [ ] BorderCountries => new [ ]
43- {
42+ public Alpha2Code [ ] BorderCountries =>
43+ [
4444 Alpha2Code . AL ,
4545 Alpha2Code . ME ,
4646 Alpha2Code . MK ,
4747 Alpha2Code . RS
48- } ;
48+ ] ;
4949
5050 /// <inheritdoc/>
5151 /// <remarks>Euro used unilaterally</remarks>
52- public ICurrency [ ] Currencies => new [ ] { new EurCurrency ( ) } ;
52+ public ICurrency [ ] Currencies => [ new EurCurrency ( ) ] ;
5353
5454 /// <inheritdoc/>
55- public string [ ] CallingCodes => new [ ] { "383" } ;
55+ public string [ ] CallingCodes => [ "383" ] ;
5656 }
5757}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public sealed class KuwaitCountryInfo : ICountryInfo
2626 public int NumericCode => 414 ;
2727
2828 /// <inheritdoc/>
29- public string [ ] TLD => new [ ] { ".kw" } ;
29+ public string [ ] TLD => [ ".kw" ] ;
3030
3131 /// <inheritdoc/>
3232 public Region Region => Region . Asia ;
@@ -35,16 +35,16 @@ public sealed class KuwaitCountryInfo : ICountryInfo
3535 public SubRegion SubRegion => SubRegion . WesternAsia ;
3636
3737 /// <inheritdoc/>
38- public Alpha2Code [ ] BorderCountries => new Alpha2Code [ ]
39- {
38+ public Alpha2Code [ ] BorderCountries =>
39+ [
4040 Alpha2Code . IQ ,
4141 Alpha2Code . SA ,
42- } ;
42+ ] ;
4343
4444 /// <inheritdoc/>
45- public ICurrency [ ] Currencies => new [ ] { new KwdCurrency ( ) } ;
45+ public ICurrency [ ] Currencies => [ new KwdCurrency ( ) ] ;
4646
4747 /// <inheritdoc/>
48- public string [ ] CallingCodes => new [ ] { "965" } ;
48+ public string [ ] CallingCodes => [ "965" ] ;
4949 }
5050}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public sealed class LaosCountryInfo : ICountryInfo
2626 public int NumericCode => 418 ;
2727
2828 /// <inheritdoc/>
29- public string [ ] TLD => new [ ] { ".la" } ;
29+ public string [ ] TLD => [ ".la" ] ;
3030
3131 /// <inheritdoc/>
3232 public Region Region => Region . Asia ;
@@ -35,19 +35,19 @@ public sealed class LaosCountryInfo : ICountryInfo
3535 public SubRegion SubRegion => SubRegion . SouthEasternAsia ;
3636
3737 /// <inheritdoc/>
38- public Alpha2Code [ ] BorderCountries => new Alpha2Code [ ]
39- {
38+ public Alpha2Code [ ] BorderCountries =>
39+ [
4040 Alpha2Code . MM ,
4141 Alpha2Code . KH ,
4242 Alpha2Code . CN ,
4343 Alpha2Code . TH ,
4444 Alpha2Code . VN ,
45- } ;
45+ ] ;
4646
4747 /// <inheritdoc/>
48- public ICurrency [ ] Currencies => new [ ] { new LakCurrency ( ) } ;
48+ public ICurrency [ ] Currencies => [ new LakCurrency ( ) ] ;
4949
5050 /// <inheritdoc/>
51- public string [ ] CallingCodes => new [ ] { "856" } ;
51+ public string [ ] CallingCodes => [ "856" ] ;
5252 }
5353}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public sealed class LatviaCountryInfo : ICountryInfo
2626 public int NumericCode => 428 ;
2727
2828 /// <inheritdoc/>
29- public string [ ] TLD => new [ ] { ".lv" } ;
29+ public string [ ] TLD => [ ".lv" ] ;
3030
3131 /// <inheritdoc/>
3232 public Region Region => Region . Europe ;
@@ -35,18 +35,18 @@ public sealed class LatviaCountryInfo : ICountryInfo
3535 public SubRegion SubRegion => SubRegion . NorthernEurope ;
3636
3737 /// <inheritdoc/>
38- public Alpha2Code [ ] BorderCountries => new Alpha2Code [ ]
39- {
38+ public Alpha2Code [ ] BorderCountries =>
39+ [
4040 Alpha2Code . BY ,
4141 Alpha2Code . EE ,
4242 Alpha2Code . LT ,
4343 Alpha2Code . RU ,
44- } ;
44+ ] ;
4545
4646 /// <inheritdoc/>
47- public ICurrency [ ] Currencies => new [ ] { new EurCurrency ( ) } ;
47+ public ICurrency [ ] Currencies => [ new EurCurrency ( ) ] ;
4848
4949 /// <inheritdoc/>
50- public string [ ] CallingCodes => new [ ] { "371" } ;
50+ public string [ ] CallingCodes => [ "371" ] ;
5151 }
5252}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public sealed class LebanonCountryInfo : ICountryInfo
2626 public int NumericCode => 422 ;
2727
2828 /// <inheritdoc/>
29- public string [ ] TLD => new [ ] { ".lb" } ;
29+ public string [ ] TLD => [ ".lb" ] ;
3030
3131 /// <inheritdoc/>
3232 public Region Region => Region . Asia ;
@@ -35,16 +35,16 @@ public sealed class LebanonCountryInfo : ICountryInfo
3535 public SubRegion SubRegion => SubRegion . WesternAsia ;
3636
3737 /// <inheritdoc/>
38- public Alpha2Code [ ] BorderCountries => new Alpha2Code [ ]
39- {
38+ public Alpha2Code [ ] BorderCountries =>
39+ [
4040 Alpha2Code . IL ,
4141 Alpha2Code . SY ,
42- } ;
42+ ] ;
4343
4444 /// <inheritdoc/>
45- public ICurrency [ ] Currencies => new [ ] { new LbpCurrency ( ) } ;
45+ public ICurrency [ ] Currencies => [ new LbpCurrency ( ) ] ;
4646
4747 /// <inheritdoc/>
48- public string [ ] CallingCodes => new [ ] { "961" } ;
48+ public string [ ] CallingCodes => [ "961" ] ;
4949 }
5050}
You can’t perform that action at this time.
0 commit comments