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

.NET (Core and Framework)

 
QuestionAspect Oriented Programming in .NET Pin
Jammer26-Nov-11 9:18
Jammer26-Nov-11 9:18 
Questiongeneric method, to be inherited,to get an entity by its ID in LINQ using T-SQL embed Pin
jonatan_55624-Nov-11 4:16
jonatan_55624-Nov-11 4:16 
QuestionMixed mode assembley Pin
columbos1492720-Nov-11 19:57
columbos1492720-Nov-11 19:57 
AnswerRe: Mixed mode assembley Pin
rajeevcapgeminiindia22-Nov-11 1:05
rajeevcapgeminiindia22-Nov-11 1:05 
GeneralRe: Mixed mode assembley Pin
Richard MacCutchan22-Nov-11 1:09
mveRichard MacCutchan22-Nov-11 1:09 
AnswerRe: Mixed mode assembley Pin
NikulDarji23-Nov-11 3:08
NikulDarji23-Nov-11 3:08 
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 
Hi,

1.
there is no unboxing, and no run-time penalty, if one of your methods is declared as returning IEnumerable<string> and actually returns a List<string> or a string[]. The compiler has checked each return statement returns the promised type, and they do as both List and Array are implementing IEnumerable, so all interface members are available as is.

2.
AFAIK ToList() creates a new List. IMO most ToSomeThing() methods create a new object, the one exception I know of is the meaningless string.ToString()

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

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 
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 

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.