I have seen a sample C# code that looked like this:
private static string GetCommandLine(Process process)
{
string cmd = "";
using (var s = new ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE ProcessId = " + process.Id))
{
foreach (var @object in s.Get())
{
if (cmd.Length > 0) cmd += " ";
cmd += @object["CommandLine"];
}
}
return cmd;
}
What is the purpose of the @ in the loop variable?