Click here to Skip to main content
15,894,271 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionMessage Removed Pin
17-Nov-11 9:36
professionalN_tro_P17-Nov-11 9:36 
AnswerRe: IEnumerable Unboxing and ToMethods Pin
Luc Pattyn17-Nov-11 10:40
sitebuilderLuc Pattyn17-Nov-11 10:40 
GeneralRe: IEnumerable Unboxing and ToMethods Pin
Not Active17-Nov-11 12:10
mentorNot Active17-Nov-11 12:10 
GeneralRe: IEnumerable Unboxing and ToMethods Pin
Luc Pattyn17-Nov-11 12:25
sitebuilderLuc Pattyn17-Nov-11 12:25 
GeneralMessage Removed Pin
18-Nov-11 3:46
professionalN_tro_P18-Nov-11 3:46 
AnswerRe: IEnumerable Unboxing and ToMethods Pin
Luc Pattyn18-Nov-11 4:08
sitebuilderLuc Pattyn18-Nov-11 4:08 
GeneralMessage Removed Pin
18-Nov-11 4:37
professionalN_tro_P18-Nov-11 4:37 
AnswerRe: IEnumerable Unboxing and ToMethods Pin
Luc Pattyn18-Nov-11 4:45
sitebuilderLuc Pattyn18-Nov-11 4:45 
if you need a List, it is best for the method to return a List. Turning an IEnumerable into a list afterwards is expensive.

if all you need is an IEnumerable, then it does not matter one way or the other; there is no added cost in returning a List as an IEnumerable, just as there is no added cost in passing a TextBox to a method that expects a Control.

Smile | :)

PS: and then there also is IList ...
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralMessage Removed Pin
18-Nov-11 5:21
professionalN_tro_P18-Nov-11 5:21 
GeneralRe: IEnumerable Unboxing and ToMethods Pin
Luc Pattyn18-Nov-11 5:24
sitebuilderLuc Pattyn18-Nov-11 5:24 
GeneralRe: IEnumerable Unboxing and ToMethods Pin
Addy Tas7-Dec-11 11:02
Addy Tas7-Dec-11 11:02 
GeneralMessage Removed Pin
12-Dec-11 4:10
professionalN_tro_P12-Dec-11 4:10 
GeneralRe: IEnumerable Unboxing and ToMethods Pin
Addy Tas12-Dec-11 9:45
Addy Tas12-Dec-11 9:45 
QuestionPrinting: HasMorePages ignored Pin
W Balboos, GHB17-Nov-11 6:48
W Balboos, GHB17-Nov-11 6:48 
AnswerRe: Printing: HasMorePages ignored Pin
Richard MacCutchan17-Nov-11 8:38
mveRichard MacCutchan17-Nov-11 8:38 
GeneralRe: Printing: HasMorePages ignored Pin
W Balboos, GHB17-Nov-11 8:48
W Balboos, GHB17-Nov-11 8:48 
AnswerRe: Printing: HasMorePages ignored Pin
Luc Pattyn17-Nov-11 9:21
sitebuilderLuc Pattyn17-Nov-11 9:21 
GeneralRe: Printing: HasMorePages ignored Pin
W Balboos, GHB17-Nov-11 9:48
W Balboos, GHB17-Nov-11 9:48 
AnswerRe: Printing: HasMorePages ignored Pin
Luc Pattyn17-Nov-11 9:59
sitebuilderLuc Pattyn17-Nov-11 9:59 
Question64 bit vs. 32 bit for developers... Pin
Jun Du17-Nov-11 3:44
Jun Du17-Nov-11 3:44 
AnswerRe: 64 bit vs. 32 bit for developers... Pin
Richard MacCutchan17-Nov-11 6:58
mveRichard MacCutchan17-Nov-11 6:58 
AnswerRe: 64 bit vs. 32 bit for developers... Pin
Luc Pattyn17-Nov-11 9:27
sitebuilderLuc Pattyn17-Nov-11 9:27 
AnswerRe: 64 bit vs. 32 bit for developers... Pin
David Skelly17-Nov-11 22:33
David Skelly17-Nov-11 22:33 
GeneralRe: 64 bit vs. 32 bit for developers... Pin
Albert Holguin21-Nov-11 8:02
professionalAlbert Holguin21-Nov-11 8:02 
Questionintegrate the report manager to asp.net project Pin
shijuse15-Nov-11 18:18
professionalshijuse15-Nov-11 18:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.