Most voted "anonymous-type" questions
3 questions
Sort by count of
-
5
votes2
answers84
viewsWhy does the new instance of Actionlistener receive a parenthesis and a ;(semicolon) at the end?
I’ve never seen this kind of code structure in the instance, what does it do? The class ActionListener To instantiate it, you have to put it like this: ActionListener trataEventos = new…
-
1
votes2
answers138
viewsTolist() returning read-only
Follows code: using (var db = new Entities()) { var result = db .Tabela1 .Select(x => new { x.Coluna1, x.Coluna2 }) .ToList(); foreach (var item in result) { if (item.Coluna1 == string.Empty) {…
-
1
votes1
answer279
viewsHow to pass and traverse an anonymous object in a method
How can I pass an anonymous object to a method, and then traverse it? What I’m trying to do is this: public static string QueryStringToUrl(string url, Dictionary<string, string> query) { var…