Re: Getting information from IEnumerable

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Yes. Just stuff it in a List<XElement>. There
is a List<> constructor that takes an IEnumerable<>
as argument.

And if it comes from LINQ for XML there is also
ToList in that.

As far i can see, DotNet complains when i try to
shove the obtained IEnumerable<XElement> into a
List<XElement>... Are you sure it's possible with
no explicit casting involved?

"stuff it in" = use it as argument for constructor
assignment does not really stuff much

I see you, very correctly and clearly so,
mention the use of constructor, when talking
about stuffing in. I must have missed it.
Please accept my appology.

I though by stuffing in you ment:
int stuffee = 3;
double stuffer = stuffee;
Well, i'll be off correcting the error.
Thanks to all of you guys!

--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.


.