c# - Single linq query for complex data structure : Dict<int, Dict<str, _class>> -
We look at the following structure first (I tried to simplify it, just what type of query I need)
class name address {public string name {get; Set; } Public string address {get; Set; } Public name address (string asam, string sdres) {name = sName; Address = sAddress; }} Fixed zero main (string [] args) {dictionary
I want to query the following data structure using a single linq query. Let's say I want to find the person who lives in New York and its key is also not the integer key (_dictionary key), but the string key (in this case - "third") is what I want to know .
Is it possible to know the special name in string key and single linux query? If so, then what is that question?
Note that this iterates (instead of using the index) , But it works:
var found = (External from outside _dictionary in outer. Here's where the internal value. Address == "New York" Select New {external} = External .key, infra = inner, key, name address = inner value}). First and default ();
Comments
Post a Comment