Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
QuestionHow to Create my own component using C# Pin
pubudu_nt26-Oct-06 20:05
pubudu_nt26-Oct-06 20:05 
AnswerRe: How to Create my own component using C# Pin
Nader Elshehabi26-Oct-06 21:15
Nader Elshehabi26-Oct-06 21:15 
QuestionIcomparer runtime error Pin
kshet2626-Oct-06 20:01
kshet2626-Oct-06 20:01 
AnswerRe: Icomparer runtime error Pin
Stefan Troschuetz26-Oct-06 21:32
Stefan Troschuetz26-Oct-06 21:32 
AnswerRe: Icomparer runtime error Pin
ednrgc27-Oct-06 2:30
ednrgc27-Oct-06 2:30 
QuestionReflection Help Pin
lavanya_satheesh26-Oct-06 19:41
lavanya_satheesh26-Oct-06 19:41 
AnswerRe: Reflection Help Pin
engsrini26-Oct-06 21:09
engsrini26-Oct-06 21:09 
AnswerRe: Reflection Help Pin
Nader Elshehabi26-Oct-06 21:37
Nader Elshehabi26-Oct-06 21:37 
Beside what engsrini alrready said, you can think of it as an advanced way of dynamic coding. Currently it isn't widely used, but I believe in the future it may. One example is like making your own forms editor. Something like MS Access where your users can make a form and bind it to the Db. Maybe you want to add custom controls in your form.

Another example is using reflection as a mean of adding update capability in your program, where you dunamically instantiate a class from a dll and call certain methods. When you update all you need to do is to replace that dll. I know this is crap but it is possible.

One last thing is to use reflection to reference to a library that is not included in your program by default -for example optional downloadable plug-ins to your program-, and make error checking when using the classes in it. So that users can un/install plug-ins as suits them without changing anything in the main program. If a plug-in makes an error or was deleted by mistake, using reflection and not hardcoding the references into your program will give you flexibility and prevent your program from crashing.

That was some of the things I could come up with in 5 minutes. Creativity has no limits.Smile | :)



RegardsRose | [Rose]

AnswerRe: Reflection Help Pin
Pete O'Hanlon27-Oct-06 1:30
mvePete O'Hanlon27-Oct-06 1:30 
GeneralRe: Reflection Help Pin
lavanya_satheesh27-Oct-06 19:07
lavanya_satheesh27-Oct-06 19:07 
Questionhow to make a treeview node invisible using the code in C# Pin
kalaveer26-Oct-06 18:55
kalaveer26-Oct-06 18:55 
AnswerRe: how to make a treeview node invisible using the code in C# Pin
ednrgc27-Oct-06 2:34
ednrgc27-Oct-06 2:34 
AnswerRe: how to make a treeview node invisible using the code in C# [modified] Pin
DiegoValdevino28-Oct-06 2:04
DiegoValdevino28-Oct-06 2:04 
GeneralRe: how to make a treeview node invisible using the code in C# Pin
joekecalo26-Feb-10 2:34
joekecalo26-Feb-10 2:34 
Questiongetting a latest value that was inserted into a database. Pin
steve_rm26-Oct-06 17:49
steve_rm26-Oct-06 17:49 
AnswerRe: getting a latest value that was inserted into a database. Pin
sam#26-Oct-06 18:58
sam#26-Oct-06 18:58 
AnswerRe: getting a latest value that was inserted into a database. Pin
Navi1526-Oct-06 19:06
Navi1526-Oct-06 19:06 
QuestionC# - Working with file Pin
leanhsang26-Oct-06 17:10
leanhsang26-Oct-06 17:10 
AnswerRe: C# - Working with file Pin
engsrini26-Oct-06 19:01
engsrini26-Oct-06 19:01 
AnswerRe: C# - Working with file Pin
sam#26-Oct-06 19:01
sam#26-Oct-06 19:01 
AnswerRe: C# - Working with file Pin
ednrgc27-Oct-06 2:42
ednrgc27-Oct-06 2:42 
QuestionDragDrop Article Dilemma...Please help... Pin
new_phoenix26-Oct-06 15:59
new_phoenix26-Oct-06 15:59 
QuestionEliminating Write Protection Pin
hotnreddyfreddy26-Oct-06 13:19
hotnreddyfreddy26-Oct-06 13:19 
AnswerRe: Eliminating Write Protection Pin
ednrgc27-Oct-06 2:39
ednrgc27-Oct-06 2:39 
QuestionStop Button from taking focus during a keypress or keyup event. Pin
bradsnobar26-Oct-06 11:18
bradsnobar26-Oct-06 11: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.