Do you know how to declare variables in LINQPad in order to hold the query result and use it later in multiply queries?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just select C# or VB Statements, and you will be able to write variable declarations.
To view the content of your variables, you can use the Dump extension method available on all types:
Or you can use the
Console.Writemethod.If you want to include method or class declarations within a LinqPad file, select C# or VB Program.