var data = new ProcessData {Id = 123, Name ="CurrentProcess",Memory = 12345567};
Collectiopn initializers:
var digits = new List
for example:
foreach (var process in Process.GetProcesses())
{
processes.Add(new ProcessData { Id = process.Id, Name = process.ProcessName, Memory = process.WorkingSet64 });
}
yeah yeah yeah so easy now !!!!!!!!!!!!!!!!!!!!!!
No comments:
Post a Comment