How to pass output of a linq query to another form in C#
- by Ani
I have a Linq query and I want to pass the ouput (userid) to another form for further processing.
var userid = from auser in allusers.Users where auser.Username == nameString select new { id = auser.UserId };
so only 'UserId' is stored in variable 'userid' and I want to use this value in another form.
Is there any way we can do this.
Thanks,
Ani