Skip to content

Commit bfccb0e

Browse files
committed
Update Bulgaria currency to EUR and deprecate BGN
Changed Bulgaria's currency from BGN to EUR in BulgariaCountryInfo. Marked BgnCurrency as obsolete, recommending the use of EurCurrency instead.
1 parent d94d7e7 commit bfccb0e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Nager.Country/CountryInfos/BulgariaCountryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public sealed class BulgariaCountryInfo : ICountryInfo
4545
];
4646

4747
/// <inheritdoc/>
48-
public ICurrency[] Currencies => [new BgnCurrency()];
48+
public ICurrency[] Currencies => [new EurCurrency()];
4949

5050
/// <inheritdoc/>
5151
public string[] CallingCodes => ["359"];

src/Nager.Country/Currencies/BgnCurrency.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
namespace Nager.Country.Currencies
1+
using System;
2+
3+
namespace Nager.Country.Currencies
24
{
35
/// <summary>
46
/// Bgn Currency
57
/// </summary>
8+
[Obsolete("Replaced with ECurrency. Use EurCurrency instead.")]
69
public sealed class BgnCurrency : ICurrency
710
{
811
/// <inheritdoc/>

0 commit comments

Comments
 (0)