Home / Archive: January 2009

| RSS

Get A List Of Running Processes Using C# – Code Snippet

This code will retrieve a list of currently running process on a machine and write their names to console.

// Get A List of process using
// System.Diagnostics.Process class
List<Process> processes = Process.GetProcesses().ToList();

// Write them out to Console
processes.ForEach(x => Console.WriteLine(x.ProcessName));

[ More ] January 27th, 2009 | No Comments | Posted in Code Snippets |

Microsoft Is Number 38 In Top 100 Companies To Work For

Fortune magazine released their Top 100 companies to work for list. At number one is NetApp who are having a Slashdot effect after achieving number 1 spot on the list. Interesting findings are Google at number 4 and beloved Microsoft slipping to number 38. While I take these lists with a pinch of salt, they [...]

[ More ] January 27th, 2009 | 2 Comments | Posted in News |

var Keyword In C#

I have a confession to make. When I saw var keyword for the first time I did not like it at all. My first opinion was that var was so variant like. Call me a control freak but I like to clearly see what I am declaring. And var was something I thought made the [...]

[ More ] January 6th, 2009 | 4 Comments | Posted in Programming |

Application Architecture Guide Read It Even If You Know It All

If you are an Architect or a Developer then I highly recommend that you read Application Architecture Guide from Patterns & Practices team at Microsoft. In recent years .Net Framework has grown tremendously to include technologies such as WPF, WCF, WF over the standard offerings such as ASP.NET, Windows Forms and BCL. How does [...]

[ More ] January 6th, 2009 | No Comments | Posted in News |

LINQ Equivalent Of Where IN With Int

Earlier I wrote a post showing how to write a LINQ query which gets transformed into a T-SQL query with a "Where In" clause. I had a comment on the post by Steve saying that the approach only works with strings. In this post I will show you a similar query which works with Integers.
Let’s [...]

[ More ] January 5th, 2009 | No Comments | Posted in Programming |

2009 For Me

Over last few days I have been off from work and for the first time in many years I have actually stayed away from computing over Christmas break. This has been very good for me. I genuinely feel relaxed, recharged, refreshed and by all means ready to take on another year. I have setup few [...]

[ More ] January 2nd, 2009 | No Comments | Posted in News |

Happy New Year

I wish all readers of One .Net Way a very Happy New Year. Let 2009 be an year of learning. I know it will be for me.

[ More ] January 2nd, 2009 | No Comments | Posted in News |