Microsoft SDK
January 19, 2010 Leave a comment
Code + Coffee (Farming)
January 19, 2010 Leave a comment
January 5, 2010 Leave a comment
January 13, 2009 Leave a comment
var
from p in System.Diagnostics.Process
select new
ObjectDumper.Write(query);
and I got the following error:
Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access.
An anonymous type must be declared with a member assignment, simple name, or member access.
Apparently, you need to have real variable names for each property you create (note the bold):
select
new {sessionId = p.SessionId.ToString(), p.ProcessName};
Did the trick