LINQ not giving me output I want (newbie question)
For this example I have a Man object. A property of the Man object is a generic list of Dog objects. Each Dog object also has a generic list of just strings.
I am grabbing a property from the main object, Man and then digging down into the Man object's associated Dog list to grab the bones property of each Dog object in that list. However, when ever I print to console I keep on getting this (the number of bones (property) is never being printed:
Re: LINQ not giving me output I want (newbie question)
Just to clarify here, your Man object has multiple Dogs, and each Dog object, has an integer property that has the number of bones, and you want to get this property, sum it up from all the Dog's for each Man, and display it using LINQ?
If you create a dummy console project and attach the source or put it on pastebin (http://pastebin.com/), I'll take a look and see what I can to do to help.