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

.NET (Core and Framework)

 
Questionvisual studio thinks it resides in Europe, and we're actually in the US Pin
Mihai Pruna19-Jan-09 14:00
Mihai Pruna19-Jan-09 14:00 
AnswerRe: visual studio thinks it resides in Europe, and we're actually in the US Pin
Not Active19-Jan-09 15:32
mentorNot Active19-Jan-09 15:32 
GeneralRe: visual studio thinks it resides in Europe, and we're actually in the US Pin
Mihai Pruna20-Jan-09 2:57
Mihai Pruna20-Jan-09 2:57 
AnswerRe: visual studio thinks it resides in Europe, and we're actually in the US Pin
omlac20-Jan-09 3:16
omlac20-Jan-09 3:16 
QuestionDoes the use of many trivial classes with generics pose a performance penalty? Pin
supercat919-Jan-09 10:00
supercat919-Jan-09 10:00 
AnswerRe: Does the use of many trivial classes with generics pose a performance penalty? Pin
Member 362614020-Jan-09 11:06
Member 362614020-Jan-09 11:06 
AnswerRe: Does the use of many trivial classes with generics pose a performance penalty? Pin
Mark Churchill20-Jan-09 14:36
Mark Churchill20-Jan-09 14:36 
GeneralRe: Does the use of many trivial classes with generics pose a performance penalty? Pin
supercat920-Jan-09 16:07
supercat920-Jan-09 16:07 
Why not just use the build in List< U>.ForEach(instance.Act)?

Are you assuming Action< U> is a delegate for a void function that takes a single parameter of type U? I'm not terribly familiar with C# syntax, and I don't see any declaration for Action.

Also, I would guess that the last statement was supposed to be ActOnABunchOfStuff< integer>(foo, doItTarget.Act); but the board gobbled up what it thought was a tag?

If all the items in the list are of the same concrete type, I suppose that approach would work, at the expense of generating lots of silly little wrapper functions. Maybe that's no worse than generating silly little classes, but the generics approach I describe could offer another benefit that might be harder to achieve without generics: one could have a list of objects and do an enumerated invoke with something like if typeof(it) is iAct(of T) Then CType(it, iAct(of T)).Act(whatever). Not sure what the performance of that would be, but it would allow one to achieve a form of event handling without requiring every item to create a delegate for every different event that it supports. One could do such 'typeof/is' testing in a wrapper function, but that would seem a bit inelegant.
GeneralRe: Does the use of many trivial classes with generics pose a performance penalty? Pin
Mark Churchill20-Jan-09 16:31
Mark Churchill20-Jan-09 16:31 
GeneralRe: Does the use of many trivial classes with generics pose a performance penalty? Pin
supercat920-Jan-09 18:45
supercat920-Jan-09 18:45 
QuestionDynamic Blob field Pin
dwolver19-Jan-09 9:21
dwolver19-Jan-09 9:21 
AnswerRe: Dynamic Blob field Pin
Eddy Vluggen19-Jan-09 9:37
professionalEddy Vluggen19-Jan-09 9:37 
AnswerRe: Dynamic Blob field Pin
Wendelius20-Jan-09 9:22
mentorWendelius20-Jan-09 9:22 
GeneralRe: Dynamic Blob field Pin
Member 362614020-Jan-09 10:23
Member 362614020-Jan-09 10:23 
QuestionSSHExec:: RunCommand and X11 forwarding Pin
peppoRao7119-Jan-09 8:36
peppoRao7119-Jan-09 8:36 
QuestionVirtualPageProvider - Not getting hit on virtual file requests [modified] Pin
Tristan Rhodes19-Jan-09 3:51
Tristan Rhodes19-Jan-09 3:51 
AnswerRe: VirtualPageProvider - Not getting hit on virtual file requests Pin
cmk19-Jan-09 14:09
cmk19-Jan-09 14:09 
GeneralRe: VirtualPageProvider - Not getting hit on virtual file requests Pin
Tristan Rhodes20-Jan-09 2:24
Tristan Rhodes20-Jan-09 2:24 
GeneralRe: VirtualPageProvider - Not getting hit on virtual file requests Pin
cmk20-Jan-09 5:02
cmk20-Jan-09 5:02 
QuestionHow Can i develop programs in PPC(Pocket PC with Windows Mobile) Pin
ox010118-Jan-09 16:05
ox010118-Jan-09 16:05 
AnswerRe: How Can i develop programs in PPC(Pocket PC with Windows Mobile) Pin
«_Superman_»18-Jan-09 17:01
professional«_Superman_»18-Jan-09 17:01 
GeneralRe: How Can i develop programs in PPC(Pocket PC with Windows Mobile) Pin
ox010118-Jan-09 17:09
ox010118-Jan-09 17:09 
AnswerRe: How Can i develop programs in PPC(Pocket PC with Windows Mobile) Pin
Eddy Vluggen19-Jan-09 1:42
professionalEddy Vluggen19-Jan-09 1:42 
AnswerRe: How Can i develop programs in PPC(Pocket PC with Windows Mobile) Pin
ox010118-Jan-09 20:26
ox010118-Jan-09 20:26 
GeneralRe: How Can i develop programs in PPC(Pocket PC with Windows Mobile) Pin
Not Active19-Jan-09 2:27
mentorNot Active19-Jan-09 2:27 

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.