.Net: Getting the Currency Symbol from a Currency Code

by matt 13. March 2009 12:02
Many year ago I built an e-commerce solution where I was receiving the international currency code (I.e. GBP or USD) and had to use this to determine the currency symbol to display.  This was during the dirty days of ASP.Classic so I just slapped in a 'nice' little switch statement and that was that. That is neither elegant or good, and now faced with a similar issue I decided to look in to the problem and get a nicer solution. The Problem I'm receiving ISO 4217 currency codes in my application and that application in itself is running under a current culture of en-US.  Using this code, I... [More]

Tags:

.Net Framework | LINQ

LINQ: Error 19 Could not find an implementation of the query pattern for source type

by matt 25. January 2008 10:12
Overview I reckon that I have probably seen the same LINQ demo as just about everyone else in the world.  You know, the one where you get a list of all of the processes running on the server and print them out to the console as follows: var processes = from activeProcesses in Process.GetProcesses() select new { Name = activeProcesses.ProcessName, ProcessId = activeProcesses.Id }; foreach (var row in processes) Console.WriteLine(row.ToString()); Console.ReadLine(); Well, I tired to use the same principle to iterate through a custom collection for an idea I was ... [More]

Tags:

.Net Framework | LINQ

Powered by BlogEngine.NET 1.5.0.7
Theme by Interakting

Interakting

A full service digital agency offering online strategy, design and usability, systems integration and online marketing services that deliver real business benefits and ensure your online objectives are met.

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar