Re: Getting information from IEnumerable
- From: "K Viltersten" <tmp1@xxxxxxxxxxxxxx>
- Date: Thu, 24 Jul 2008 12:47:11 +0200
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.
.
- References:
- Getting information from IEnumerable
- From: K Viltersten
- Re: Getting information from IEnumerable
- From: Arne Vajhøj
- Re: Getting information from IEnumerable
- From: K Viltersten
- Re: Getting information from IEnumerable
- From: Arne Vajhøj
- Getting information from IEnumerable
- Prev by Date: Re: Proper design of classes
- Next by Date: Re: Executing system calls
- Previous by thread: Re: Getting information from IEnumerable
- Next by thread: Re: Getting information from IEnumerable
- Index(es):