日期:2014-05-17 浏览次数:20788 次
using System;
using System.Collections.Generic;
using System.Diagnostics;
internal static class LanguageFeatures
{
private static void DisplayProcesses( Func<Process , Boolean> match)
{
var processes = new List< Object>();
foreach (var process in Process.GetProcesses())
{
if (match(process))
{
processes.Add( new
{
process.Id,
Name = process.ProcessName,
Memory = process.WorkingSet64