Click here to Skip to main content
15,920,669 members
Home / Discussions / C#
   

C#

 
AnswerRe: Check for empty DateTimeInput in c# Pin
kiran605329-Mar-12 20:10
kiran605329-Mar-12 20:10 
AnswerRe: Check for empty DateTimeInput in c# Pin
OriginalGriff29-Mar-12 22:39
mveOriginalGriff29-Mar-12 22:39 
GeneralRe: Check for empty DateTimeInput in c# Pin
nhanlaptrinh30-Mar-12 1:25
nhanlaptrinh30-Mar-12 1:25 
Questionmultithreading control and management Pin
nasser_ali29-Mar-12 11:06
nasser_ali29-Mar-12 11:06 
AnswerRe: multithreading control and management Pin
Ravi Bhavnani29-Mar-12 11:11
professionalRavi Bhavnani29-Mar-12 11:11 
Questionmaking parllel for loop with uses of all processor Pin
KUNWAR99929-Mar-12 8:52
KUNWAR99929-Mar-12 8:52 
AnswerRe: making parllel for loop with uses of all processor Pin
Eddy Vluggen29-Mar-12 9:05
professionalEddy Vluggen29-Mar-12 9:05 
GeneralRe: making parllel for loop with uses of all processor Pin
KUNWAR99930-Mar-12 7:13
KUNWAR99930-Mar-12 7:13 
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 

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.