|
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));
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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.
Popular Post
Tag Cloud
Code Snippets
- Get Current Windows User In C#
- Get Width And Height Of Image In C#
- Get Windows Registry Size With WMI And C#
- Reverse Array Elements Using C#
- Convert Hexadecimal To Number In C#
- Get Free Disk Space Using T-SQL
- SQL Server 2008 – Get All Indexes In A Database
- Get Name Of Current Executing Assembly In C#
- Get CD Or DVD Drive Information Using WMI And C#
- Get Last Row From Table Using LINQ To SQL

