Click here to Skip to main content
15,904,288 members
Home / Discussions / C#
   

C#

 
AnswerRe: making parllel for loop with uses of all processor Pin
Eddy Vluggen30-Mar-12 8:02
professionalEddy Vluggen30-Mar-12 8:02 
GeneralRe: making parllel for loop with uses of all processor Pin
KUNWAR99930-Mar-12 8:14
KUNWAR99930-Mar-12 8:14 
QuestionRe: making parllel for loop with uses of all processor Pin
Eddy Vluggen30-Mar-12 8:26
professionalEddy Vluggen30-Mar-12 8:26 
QuestionUsing Reflections Pin
SFORavi29-Mar-12 8:21
SFORavi29-Mar-12 8:21 
AnswerRe: Using Reflections Pin
PIEBALDconsult29-Mar-12 8:41
mvePIEBALDconsult29-Mar-12 8:41 
AnswerRe: Using Reflections Pin
Ravi Bhavnani29-Mar-12 11:13
professionalRavi Bhavnani29-Mar-12 11:13 
AnswerRe: Using Reflections Pin
RobCroll29-Mar-12 16:56
RobCroll29-Mar-12 16:56 
GeneralRe: Using Reflections Pin
CDP180229-Mar-12 23:06
CDP180229-Mar-12 23:06 
RobCroll wrote:
It is unusual to use reflection in everyday programming

Really? Reflection is generally not known to be fast, but it can be of enormous help in many situations if used sparingly. These are my most recent examples:

I am working on my own UI and there are style objects which follow the class hierarchy of the controls. When loading a control the closest related style is found with reflection and applied to the control, even if it's a custom control with no custom style class. In that case the style of the control's baseclass is found and applied.

Also, a kind of class finder is used to decouble modules and assemblies to find specific classes and create instances of them. It uses reflection to search through the assemblies for the requested type. Let's say I'm looking for ILoginPresenter and ILoginView in order to open the application's login screen. Obtaining instances of those two would not require tightly coupled assemblies or classes. The only dependencies would be the interfaces involved.
I'm invincible, I can't be vinced



AnswerRe: Using Reflections Pin
Abhinav S29-Mar-12 19:25
Abhinav S29-Mar-12 19:25 
Questionlabel problem Pin
KUNWAR99929-Mar-12 6:57
KUNWAR99929-Mar-12 6:57 
AnswerRe: label problem Pin
fjdiewornncalwe29-Mar-12 7:02
professionalfjdiewornncalwe29-Mar-12 7:02 
GeneralRe: label problem Pin
KUNWAR99929-Mar-12 7:20
KUNWAR99929-Mar-12 7:20 
AnswerRe: label problem Pin
Matt U.29-Mar-12 7:14
Matt U.29-Mar-12 7:14 
GeneralRe: label problem Pin
KUNWAR99929-Mar-12 7:19
KUNWAR99929-Mar-12 7:19 
GeneralRe: label problem PinPopular
Matt U.29-Mar-12 7:21
Matt U.29-Mar-12 7:21 
GeneralRe: label problem Pin
KUNWAR99929-Mar-12 7:41
KUNWAR99929-Mar-12 7:41 
GeneralRe: label problem Pin
BobJanova29-Mar-12 23:54
BobJanova29-Mar-12 23:54 
GeneralRe: label problem Pin
GenJerDan29-Mar-12 8:04
GenJerDan29-Mar-12 8:04 
GeneralRe: label problem Pin
Matt U.29-Mar-12 9:43
Matt U.29-Mar-12 9:43 
Generalshutdown Pin
shailendrahere7829-Mar-12 6:19
shailendrahere7829-Mar-12 6:19 
GeneralRe: shutdown PinPopular
Not Active29-Mar-12 6:22
mentorNot Active29-Mar-12 6:22 
GeneralRe: shutdown Pin
PIEBALDconsult29-Mar-12 7:35
mvePIEBALDconsult29-Mar-12 7:35 
GeneralRe: shutdown Pin
Not Active29-Mar-12 8:05
mentorNot Active29-Mar-12 8:05 
AnswerRe: shutdown Pin
Ravi Bhavnani29-Mar-12 11:14
professionalRavi Bhavnani29-Mar-12 11:14 
QuestionNo scrollbars. Why? Pin
albh0729-Mar-12 5:08
albh0729-Mar-12 5:08 

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.