ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Display Currency Symbol from ISO Numeric Code in C# and VB.Net<p>Hi itsjayshah,</p> <p>The .Net framework only has the alphabetic codes in the form of RegionInfo.ISOCurrencySymbol. You need to create your own mapping/database.</p> <p>The ISO3166 currency codes (840 for U.S. Dollar, etc.) are not available in the .Net framework. All you can get from the RegionInfo class is the ISO4217 currency code (ISOCurrencyCode) and the CurrencySymbol $.</p> <p><a href="https://en.wikipedia.org/wiki/ISO_4217">https://en.wikipedia.org/wiki/ISO_4217</a></p> <p>You will have to download a list of data and do the mapping yourself.</p> <p>Check this example. Now please take its reference and correct your code.</p> <p><strong><span style="text-decoration: underline;">Namespaces</span></strong></p> <p><strong>C#</strong></p> <pre class="brush: csharp">using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; </pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Imports System.Collections Imports System.Collections.Generic Imports System.Globalization Imports System.Linq </pre> <p><strong><span style="text-decoration: underline;">Code</span></strong></p> <p><strong>C#</strong></p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { Response.Write(GetCurrencySymbol(LookupByNumber(356).Code) + &#34;&lt;br/&gt;&#34;); Response.Write(GetCurrencySymbol(LookupByNumber(840).Code)); } public string GetCurrencySymbol(string currencyCode) { string symbol = string.Empty; CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures); ArrayList Result = new ArrayList(); foreach (CultureInfo ci in cultures) { RegionInfo ri = new RegionInfo(ci.LCID); if (ri.ISOCurrencySymbol == currencyCode) { symbol = ri.CurrencySymbol; return symbol; } } return symbol; } private static readonly List&lt;Iso4217Definition&gt; DefinitionCollection = new List&lt;Iso4217Definition&gt; { new Iso4217Definition(&#34;AED&#34;, 784, 2), new Iso4217Definition(&#34;AFN&#34;, 971, 2), new Iso4217Definition(&#34;ALL&#34;, 8, 2), new Iso4217Definition(&#34;AMD&#34;, 51, 2), new Iso4217Definition(&#34;ANG&#34;, 532, 2), new Iso4217Definition(&#34;AOA&#34;, 973, 2), new Iso4217Definition(&#34;ARS&#34;, 32, 2), new Iso4217Definition(&#34;AUD&#34;, 36, 2), new Iso4217Definition(&#34;AWG&#34;, 533, 2), new Iso4217Definition(&#34;AZN&#34;, 944, 2), new Iso4217Definition(&#34;BAM&#34;, 977, 2), new Iso4217Definition(&#34;BBD&#34;, 52, 2), new Iso4217Definition(&#34;BDT&#34;, 50, 2), new Iso4217Definition(&#34;BGN&#34;, 975, 2), new Iso4217Definition(&#34;BHD&#34;, 48, 3), new Iso4217Definition(&#34;BIF&#34;, 108, 0), new Iso4217Definition(&#34;BMD&#34;, 60, 2), new Iso4217Definition(&#34;BND&#34;, 96, 2), new Iso4217Definition(&#34;BOB&#34;, 68, 2), new Iso4217Definition(&#34;BOV&#34;, 984, 2), new Iso4217Definition(&#34;BRL&#34;, 986, 2), new Iso4217Definition(&#34;BSD&#34;, 44, 2), new Iso4217Definition(&#34;BTN&#34;, 64, 2), new Iso4217Definition(&#34;BWP&#34;, 72, 2), new Iso4217Definition(&#34;BYR&#34;, 974, 0), new Iso4217Definition(&#34;BZD&#34;, 84, 2), new Iso4217Definition(&#34;CAD&#34;, 124, 2), new Iso4217Definition(&#34;CDF&#34;, 976, 2), new Iso4217Definition(&#34;CHE&#34;, 947, 2), new Iso4217Definition(&#34;CHF&#34;, 756, 2), new Iso4217Definition(&#34;CHW&#34;, 948, 2), new Iso4217Definition(&#34;CLF&#34;, 990, 0), new Iso4217Definition(&#34;CLP&#34;, 152, 0), new Iso4217Definition(&#34;CNY&#34;, 156, 2), new Iso4217Definition(&#34;COP&#34;, 170, 2), new Iso4217Definition(&#34;COU&#34;, 970, 2), new Iso4217Definition(&#34;CRC&#34;, 188, 2), new Iso4217Definition(&#34;CUC&#34;, 931, 2), new Iso4217Definition(&#34;CUP&#34;, 192, 2), new Iso4217Definition(&#34;CVE&#34;, 132, 0), new Iso4217Definition(&#34;CZK&#34;, 203, 2), new Iso4217Definition(&#34;DJF&#34;, 262, 0), new Iso4217Definition(&#34;DKK&#34;, 208, 2), new Iso4217Definition(&#34;DOP&#34;, 214, 2), new Iso4217Definition(&#34;DZD&#34;, 12, 2), new Iso4217Definition(&#34;EGP&#34;, 818, 2), new Iso4217Definition(&#34;ERN&#34;, 232, 2), new Iso4217Definition(&#34;ETB&#34;, 230, 2), new Iso4217Definition(&#34;EUR&#34;, 978, 2), new Iso4217Definition(&#34;FJD&#34;, 242, 2), new Iso4217Definition(&#34;FKP&#34;, 238, 2), new Iso4217Definition(&#34;GBP&#34;, 826, 2), new Iso4217Definition(&#34;GEL&#34;, 981, 2), new Iso4217Definition(&#34;GHS&#34;, 936, 2), new Iso4217Definition(&#34;GIP&#34;, 292, 2), new Iso4217Definition(&#34;GMD&#34;, 270, 2), new Iso4217Definition(&#34;GNF&#34;, 324, 0), new Iso4217Definition(&#34;GTQ&#34;, 320, 2), new Iso4217Definition(&#34;GYD&#34;, 328, 2), new Iso4217Definition(&#34;HKD&#34;, 344, 2), new Iso4217Definition(&#34;HNL&#34;, 340, 2), new Iso4217Definition(&#34;HRK&#34;, 191, 2), new Iso4217Definition(&#34;HTG&#34;, 332, 2), new Iso4217Definition(&#34;HUF&#34;, 348, 2), new Iso4217Definition(&#34;IDR&#34;, 360, 2), new Iso4217Definition(&#34;ILS&#34;, 376, 2), new Iso4217Definition(&#34;INR&#34;, 356, 2), new Iso4217Definition(&#34;IQD&#34;, 368, 3), new Iso4217Definition(&#34;IRR&#34;, 364, 0), new Iso4217Definition(&#34;ISK&#34;, 352, 0), new Iso4217Definition(&#34;JMD&#34;, 388, 2), new Iso4217Definition(&#34;JOD&#34;, 400, 3), new Iso4217Definition(&#34;JPY&#34;, 392, 0), new Iso4217Definition(&#34;KES&#34;, 404, 2), new Iso4217Definition(&#34;KGS&#34;, 417, 2), new Iso4217Definition(&#34;KHR&#34;, 116, 2), new Iso4217Definition(&#34;KMF&#34;, 174, 0), new Iso4217Definition(&#34;KPW&#34;, 408, 0), new Iso4217Definition(&#34;KRW&#34;, 410, 0), new Iso4217Definition(&#34;KWD&#34;, 414, 3), new Iso4217Definition(&#34;KYD&#34;, 136, 2), new Iso4217Definition(&#34;KZT&#34;, 398, 2), new Iso4217Definition(&#34;LAK&#34;, 418, 0), new Iso4217Definition(&#34;LBP&#34;, 422, 0), new Iso4217Definition(&#34;LKR&#34;, 144, 2), new Iso4217Definition(&#34;LRD&#34;, 430, 2), new Iso4217Definition(&#34;LSL&#34;, 426, 2), new Iso4217Definition(&#34;LTL&#34;, 440, 2), new Iso4217Definition(&#34;LVL&#34;, 428, 2), new Iso4217Definition(&#34;LYD&#34;, 434, 3), new Iso4217Definition(&#34;MAD&#34;, 504, 2), new Iso4217Definition(&#34;MDL&#34;, 498, 2), new Iso4217Definition(&#34;MGA&#34;, 969, 2), new Iso4217Definition(&#34;MKD&#34;, 807, 0), new Iso4217Definition(&#34;MMK&#34;, 104, 0), new Iso4217Definition(&#34;MNT&#34;, 496, 2), new Iso4217Definition(&#34;MOP&#34;, 446, 2), new Iso4217Definition(&#34;MRO&#34;, 478, 2), new Iso4217Definition(&#34;MUR&#34;, 480, 2), new Iso4217Definition(&#34;MVR&#34;, 462, 2), new Iso4217Definition(&#34;MWK&#34;, 454, 2), new Iso4217Definition(&#34;MXN&#34;, 484, 2), new Iso4217Definition(&#34;MXV&#34;, 979, 2), new Iso4217Definition(&#34;MYR&#34;, 458, 2), new Iso4217Definition(&#34;MZN&#34;, 943, 2), new Iso4217Definition(&#34;NAD&#34;, 516, 2), new Iso4217Definition(&#34;NGN&#34;, 566, 2), new Iso4217Definition(&#34;NIO&#34;, 558, 2), new Iso4217Definition(&#34;NOK&#34;, 578, 2), new Iso4217Definition(&#34;NPR&#34;, 524, 2), new Iso4217Definition(&#34;NZD&#34;, 554, 2), new Iso4217Definition(&#34;OMR&#34;, 512, 3), new Iso4217Definition(&#34;PAB&#34;, 590, 2), new Iso4217Definition(&#34;PEN&#34;, 604, 2), new Iso4217Definition(&#34;PGK&#34;, 598, 2), new Iso4217Definition(&#34;PHP&#34;, 608, 2), new Iso4217Definition(&#34;PKR&#34;, 586, 2), new Iso4217Definition(&#34;PLN&#34;, 985, 2), new Iso4217Definition(&#34;PYG&#34;, 600, 0), new Iso4217Definition(&#34;QAR&#34;, 634, 2), new Iso4217Definition(&#34;RON&#34;, 946, 2), new Iso4217Definition(&#34;RSD&#34;, 941, 2), new Iso4217Definition(&#34;RUB&#34;, 643, 2), new Iso4217Definition(&#34;RWF&#34;, 646, 0), new Iso4217Definition(&#34;SAR&#34;, 682, 2), new Iso4217Definition(&#34;SBD&#34;, 90, 2), new Iso4217Definition(&#34;SCR&#34;, 690, 2), new Iso4217Definition(&#34;SDG&#34;, 938, 2), new Iso4217Definition(&#34;SEK&#34;, 752, 2), new Iso4217Definition(&#34;SGD&#34;, 702, 2), new Iso4217Definition(&#34;SHP&#34;, 654, 2), new Iso4217Definition(&#34;SLL&#34;, 694, 0), new Iso4217Definition(&#34;SOS&#34;, 706, 2), new Iso4217Definition(&#34;SRD&#34;, 968, 2), new Iso4217Definition(&#34;SSP&#34;, 728, 2), new Iso4217Definition(&#34;STD&#34;, 678, 0), new Iso4217Definition(&#34;SYP&#34;, 760, 2), new Iso4217Definition(&#34;SZL&#34;, 748, 2), new Iso4217Definition(&#34;THB&#34;, 764, 2), new Iso4217Definition(&#34;TJS&#34;, 972, 2), new Iso4217Definition(&#34;TMT&#34;, 934, 2), new Iso4217Definition(&#34;TND&#34;, 788, 3), new Iso4217Definition(&#34;TOP&#34;, 776, 2), new Iso4217Definition(&#34;TRY&#34;, 949, 2), new Iso4217Definition(&#34;TTD&#34;, 780, 2), new Iso4217Definition(&#34;TWD&#34;, 901, 2), new Iso4217Definition(&#34;TZS&#34;, 834, 2), new Iso4217Definition(&#34;UAH&#34;, 980, 2), new Iso4217Definition(&#34;UGX&#34;, 800, 2), new Iso4217Definition(&#34;USD&#34;, 840, 2), new Iso4217Definition(&#34;USN&#34;, 997, 2), new Iso4217Definition(&#34;USS&#34;, 998, 2), new Iso4217Definition(&#34;UYI&#34;, 940, 0), new Iso4217Definition(&#34;UYU&#34;, 858, 2), new Iso4217Definition(&#34;UZS&#34;, 860, 2), new Iso4217Definition(&#34;VEF&#34;, 937, 2), new Iso4217Definition(&#34;VND&#34;, 704, 0), new Iso4217Definition(&#34;VUV&#34;, 548, 0), new Iso4217Definition(&#34;WST&#34;, 882, 2), new Iso4217Definition(&#34;XAF&#34;, 950, 0), new Iso4217Definition(&#34;XCD&#34;, 951, 2), new Iso4217Definition(&#34;XOF&#34;, 952, 0), new Iso4217Definition(&#34;XPF&#34;, 953, 0), new Iso4217Definition(&#34;YER&#34;, 886, 2), new Iso4217Definition(&#34;ZAR&#34;, 710, 2), new Iso4217Definition(&#34;ZMW&#34;, 967, 2) }; public static Iso4217Definition LookupByCode(string code) { return DefinitionCollection.SingleOrDefault(d =&gt; d.Code == code.ToUpper()) ?? Iso4217Definition.NotFound(); } public static Iso4217Definition LookupByNumber(int number) { return DefinitionCollection.SingleOrDefault(d =&gt; d.Number == number) ?? Iso4217Definition.NotFound(); } public class Iso4217Definition { private readonly string _code; private readonly int _number; private readonly int _minorunit; public bool Found { get; set; } public string Code { get { return _code; } } public int Number { get { return _number; } } public int MinorUnit { get { return _minorunit; } } private Iso4217Definition() { } public Iso4217Definition(string code, int number, int minorunit) { _code = code; _number = number; _minorunit = minorunit; Found = true; } public static Iso4217Definition NotFound() { return new Iso4217Definition { Found = false }; } }</pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load Response.Write(GetCurrencySymbol(LookupByNumber(356).Code) &amp; &#34;&lt;br/&gt;&#34;) Response.Write(GetCurrencySymbol(LookupByNumber(840).Code)) End Sub Public Function GetCurrencySymbol(ByVal currencyCode As String) As String Dim symbol As String = String.Empty Dim cultures As CultureInfo() = CultureInfo.GetCultures(CultureTypes.SpecificCultures) Dim Result As ArrayList = New ArrayList() For Each ci As CultureInfo In cultures Dim ri As RegionInfo = New RegionInfo(ci.LCID) If ri.ISOCurrencySymbol = currencyCode Then symbol = ri.CurrencySymbol Return symbol End If Next Return symbol End Function Private Shared ReadOnly DefinitionCollection As List(Of Iso4217Definition) = New List(Of Iso4217Definition) From { New Iso4217Definition(&#34;AED&#34;, 784, 2), New Iso4217Definition(&#34;AFN&#34;, 971, 2), New Iso4217Definition(&#34;ALL&#34;, 8, 2), New Iso4217Definition(&#34;AMD&#34;, 51, 2), New Iso4217Definition(&#34;ANG&#34;, 532, 2), New Iso4217Definition(&#34;AOA&#34;, 973, 2), New Iso4217Definition(&#34;ARS&#34;, 32, 2), New Iso4217Definition(&#34;AUD&#34;, 36, 2), New Iso4217Definition(&#34;AWG&#34;, 533, 2), New Iso4217Definition(&#34;AZN&#34;, 944, 2), New Iso4217Definition(&#34;BAM&#34;, 977, 2), New Iso4217Definition(&#34;BBD&#34;, 52, 2), New Iso4217Definition(&#34;BDT&#34;, 50, 2), New Iso4217Definition(&#34;BGN&#34;, 975, 2), New Iso4217Definition(&#34;BHD&#34;, 48, 3), New Iso4217Definition(&#34;BIF&#34;, 108, 0), New Iso4217Definition(&#34;BMD&#34;, 60, 2), New Iso4217Definition(&#34;BND&#34;, 96, 2), New Iso4217Definition(&#34;BOB&#34;, 68, 2), New Iso4217Definition(&#34;BOV&#34;, 984, 2), New Iso4217Definition(&#34;BRL&#34;, 986, 2), New Iso4217Definition(&#34;BSD&#34;, 44, 2), New Iso4217Definition(&#34;BTN&#34;, 64, 2), New Iso4217Definition(&#34;BWP&#34;, 72, 2), New Iso4217Definition(&#34;BYR&#34;, 974, 0), New Iso4217Definition(&#34;BZD&#34;, 84, 2), New Iso4217Definition(&#34;CAD&#34;, 124, 2), New Iso4217Definition(&#34;CDF&#34;, 976, 2), New Iso4217Definition(&#34;CHE&#34;, 947, 2), New Iso4217Definition(&#34;CHF&#34;, 756, 2), New Iso4217Definition(&#34;CHW&#34;, 948, 2), New Iso4217Definition(&#34;CLF&#34;, 990, 0), New Iso4217Definition(&#34;CLP&#34;, 152, 0), New Iso4217Definition(&#34;CNY&#34;, 156, 2), New Iso4217Definition(&#34;COP&#34;, 170, 2), New Iso4217Definition(&#34;COU&#34;, 970, 2), New Iso4217Definition(&#34;CRC&#34;, 188, 2), New Iso4217Definition(&#34;CUC&#34;, 931, 2), New Iso4217Definition(&#34;CUP&#34;, 192, 2), New Iso4217Definition(&#34;CVE&#34;, 132, 0), New Iso4217Definition(&#34;CZK&#34;, 203, 2), New Iso4217Definition(&#34;DJF&#34;, 262, 0), New Iso4217Definition(&#34;DKK&#34;, 208, 2), New Iso4217Definition(&#34;DOP&#34;, 214, 2), New Iso4217Definition(&#34;DZD&#34;, 12, 2), New Iso4217Definition(&#34;EGP&#34;, 818, 2), New Iso4217Definition(&#34;ERN&#34;, 232, 2), New Iso4217Definition(&#34;ETB&#34;, 230, 2), New Iso4217Definition(&#34;EUR&#34;, 978, 2), New Iso4217Definition(&#34;FJD&#34;, 242, 2), New Iso4217Definition(&#34;FKP&#34;, 238, 2), New Iso4217Definition(&#34;GBP&#34;, 826, 2), New Iso4217Definition(&#34;GEL&#34;, 981, 2), New Iso4217Definition(&#34;GHS&#34;, 936, 2), New Iso4217Definition(&#34;GIP&#34;, 292, 2), New Iso4217Definition(&#34;GMD&#34;, 270, 2), New Iso4217Definition(&#34;GNF&#34;, 324, 0), New Iso4217Definition(&#34;GTQ&#34;, 320, 2), New Iso4217Definition(&#34;GYD&#34;, 328, 2), New Iso4217Definition(&#34;HKD&#34;, 344, 2), New Iso4217Definition(&#34;HNL&#34;, 340, 2), New Iso4217Definition(&#34;HRK&#34;, 191, 2), New Iso4217Definition(&#34;HTG&#34;, 332, 2), New Iso4217Definition(&#34;HUF&#34;, 348, 2), New Iso4217Definition(&#34;IDR&#34;, 360, 2), New Iso4217Definition(&#34;ILS&#34;, 376, 2), New Iso4217Definition(&#34;INR&#34;, 356, 2), New Iso4217Definition(&#34;IQD&#34;, 368, 3), New Iso4217Definition(&#34;IRR&#34;, 364, 0), New Iso4217Definition(&#34;ISK&#34;, 352, 0), New Iso4217Definition(&#34;JMD&#34;, 388, 2), New Iso4217Definition(&#34;JOD&#34;, 400, 3), New Iso4217Definition(&#34;JPY&#34;, 392, 0), New Iso4217Definition(&#34;KES&#34;, 404, 2), New Iso4217Definition(&#34;KGS&#34;, 417, 2), New Iso4217Definition(&#34;KHR&#34;, 116, 2), New Iso4217Definition(&#34;KMF&#34;, 174, 0), New Iso4217Definition(&#34;KPW&#34;, 408, 0), New Iso4217Definition(&#34;KRW&#34;, 410, 0), New Iso4217Definition(&#34;KWD&#34;, 414, 3), New Iso4217Definition(&#34;KYD&#34;, 136, 2), New Iso4217Definition(&#34;KZT&#34;, 398, 2), New Iso4217Definition(&#34;LAK&#34;, 418, 0), New Iso4217Definition(&#34;LBP&#34;, 422, 0), New Iso4217Definition(&#34;LKR&#34;, 144, 2), New Iso4217Definition(&#34;LRD&#34;, 430, 2), New Iso4217Definition(&#34;LSL&#34;, 426, 2), New Iso4217Definition(&#34;LTL&#34;, 440, 2), New Iso4217Definition(&#34;LVL&#34;, 428, 2), New Iso4217Definition(&#34;LYD&#34;, 434, 3), New Iso4217Definition(&#34;MAD&#34;, 504, 2), New Iso4217Definition(&#34;MDL&#34;, 498, 2), New Iso4217Definition(&#34;MGA&#34;, 969, 2), New Iso4217Definition(&#34;MKD&#34;, 807, 0), New Iso4217Definition(&#34;MMK&#34;, 104, 0), New Iso4217Definition(&#34;MNT&#34;, 496, 2), New Iso4217Definition(&#34;MOP&#34;, 446, 2), New Iso4217Definition(&#34;MRO&#34;, 478, 2), New Iso4217Definition(&#34;MUR&#34;, 480, 2), New Iso4217Definition(&#34;MVR&#34;, 462, 2), New Iso4217Definition(&#34;MWK&#34;, 454, 2), New Iso4217Definition(&#34;MXN&#34;, 484, 2), New Iso4217Definition(&#34;MXV&#34;, 979, 2), New Iso4217Definition(&#34;MYR&#34;, 458, 2), New Iso4217Definition(&#34;MZN&#34;, 943, 2), New Iso4217Definition(&#34;NAD&#34;, 516, 2), New Iso4217Definition(&#34;NGN&#34;, 566, 2), New Iso4217Definition(&#34;NIO&#34;, 558, 2), New Iso4217Definition(&#34;NOK&#34;, 578, 2), New Iso4217Definition(&#34;NPR&#34;, 524, 2), New Iso4217Definition(&#34;NZD&#34;, 554, 2), New Iso4217Definition(&#34;OMR&#34;, 512, 3), New Iso4217Definition(&#34;PAB&#34;, 590, 2), New Iso4217Definition(&#34;PEN&#34;, 604, 2), New Iso4217Definition(&#34;PGK&#34;, 598, 2), New Iso4217Definition(&#34;PHP&#34;, 608, 2), New Iso4217Definition(&#34;PKR&#34;, 586, 2), New Iso4217Definition(&#34;PLN&#34;, 985, 2), New Iso4217Definition(&#34;PYG&#34;, 600, 0), New Iso4217Definition(&#34;QAR&#34;, 634, 2), New Iso4217Definition(&#34;RON&#34;, 946, 2), New Iso4217Definition(&#34;RSD&#34;, 941, 2), New Iso4217Definition(&#34;RUB&#34;, 643, 2), New Iso4217Definition(&#34;RWF&#34;, 646, 0), New Iso4217Definition(&#34;SAR&#34;, 682, 2), New Iso4217Definition(&#34;SBD&#34;, 90, 2), New Iso4217Definition(&#34;SCR&#34;, 690, 2), New Iso4217Definition(&#34;SDG&#34;, 938, 2), New Iso4217Definition(&#34;SEK&#34;, 752, 2), New Iso4217Definition(&#34;SGD&#34;, 702, 2), New Iso4217Definition(&#34;SHP&#34;, 654, 2), New Iso4217Definition(&#34;SLL&#34;, 694, 0), New Iso4217Definition(&#34;SOS&#34;, 706, 2), New Iso4217Definition(&#34;SRD&#34;, 968, 2), New Iso4217Definition(&#34;SSP&#34;, 728, 2), New Iso4217Definition(&#34;STD&#34;, 678, 0), New Iso4217Definition(&#34;SYP&#34;, 760, 2), New Iso4217Definition(&#34;SZL&#34;, 748, 2), New Iso4217Definition(&#34;THB&#34;, 764, 2), New Iso4217Definition(&#34;TJS&#34;, 972, 2), New Iso4217Definition(&#34;TMT&#34;, 934, 2), New Iso4217Definition(&#34;TND&#34;, 788, 3), New Iso4217Definition(&#34;TOP&#34;, 776, 2), New Iso4217Definition(&#34;TRY&#34;, 949, 2), New Iso4217Definition(&#34;TTD&#34;, 780, 2), New Iso4217Definition(&#34;TWD&#34;, 901, 2), New Iso4217Definition(&#34;TZS&#34;, 834, 2), New Iso4217Definition(&#34;UAH&#34;, 980, 2), New Iso4217Definition(&#34;UGX&#34;, 800, 2), New Iso4217Definition(&#34;USD&#34;, 840, 2), New Iso4217Definition(&#34;USN&#34;, 997, 2), New Iso4217Definition(&#34;USS&#34;, 998, 2), New Iso4217Definition(&#34;UYI&#34;, 940, 0), New Iso4217Definition(&#34;UYU&#34;, 858, 2), New Iso4217Definition(&#34;UZS&#34;, 860, 2), New Iso4217Definition(&#34;VEF&#34;, 937, 2), New Iso4217Definition(&#34;VND&#34;, 704, 0), New Iso4217Definition(&#34;VUV&#34;, 548, 0), New Iso4217Definition(&#34;WST&#34;, 882, 2), New Iso4217Definition(&#34;XAF&#34;, 950, 0), New Iso4217Definition(&#34;XCD&#34;, 951, 2), New Iso4217Definition(&#34;XOF&#34;, 952, 0), New Iso4217Definition(&#34;XPF&#34;, 953, 0), New Iso4217Definition(&#34;YER&#34;, 886, 2), New Iso4217Definition(&#34;ZAR&#34;, 710, 2), New Iso4217Definition(&#34;ZMW&#34;, 967, 2) } Public Shared Function LookupByCode(ByVal code As String) As Iso4217Definition Return If(DefinitionCollection.SingleOrDefault(Function(d) d.Code = code.ToUpper()), Iso4217Definition.NotFound()) End Function Public Shared Function LookupByNumber(ByVal number As Integer) As Iso4217Definition Return If(DefinitionCollection.SingleOrDefault(Function(d) d.Number = number), Iso4217Definition.NotFound()) End Function Public Class Iso4217Definition Private ReadOnly _code As String Private ReadOnly _number As Integer Private ReadOnly _minorunit As Integer Public Property Found As Boolean Public ReadOnly Property Code As String Get Return _code End Get End Property Public ReadOnly Property Number As Integer Get Return _number End Get End Property Public ReadOnly Property MinorUnit As Integer Get Return _minorunit End Get End Property Private Sub New() End Sub Public Sub New(ByVal code As String, ByVal number As Integer, ByVal minorunit As Integer) _code = code _number = number _minorunit = minorunit Found = True End Sub Public Shared Function NotFound() As Iso4217Definition Return New Iso4217Definition With { .Found = False } End Function End Class</pre> <p><strong><span style="text-decoration: underline;">Output</span></strong></p> <p><strong>रु</strong></p> <p><strong>$</strong></p>https://www.aspforums.net:443/Threads/149365/Display-Currency-Symbol-from-ISO-Numeric-Code-in-C-and-VBNet/https://www.aspforums.net:443/Threads/149365/Display-Currency-Symbol-from-ISO-Numeric-Code-in-C-and-VBNet/Tue, 08 Jan 2019 05:30:30 GMT