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]
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]