I am starting to do a little development in C#, and I am stuck with a problem here. Usually I develop in Python where stuff like this is being implemented easily (at least f
IMHO the more elegant way to do this in c#, to avoid this use of the Dictionary, c# has better options than that,
is to create a class (or struct) like Person
public class Person
{
public Person() { }
public string Name {get;set;}
public int Age {get;set;}
public double Height {get;set;}
}
and put those objects in a generic list or collection that implements IEnumerable
public List;
And use Linq to get the person you want
var personToLookfor =
from p in people
where p.Name == "somename"
select p;