Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
Questionhow to get this employee id Pin
sugunavathysubramanian28-Feb-08 20:05
sugunavathysubramanian28-Feb-08 20:05 
AnswerRe: how to get this employee id Pin
Vasudevan Deepak Kumar29-Feb-08 19:32
Vasudevan Deepak Kumar29-Feb-08 19:32 
Questionhow to pass argument via linkbutton in grid view Pin
sugunavathysubramanian28-Feb-08 20:00
sugunavathysubramanian28-Feb-08 20:00 
AnswerRe: how to pass argument via linkbutton in grid view Pin
Laddie28-Feb-08 20:12
Laddie28-Feb-08 20:12 
GeneralRe: how to pass argument via linkbutton in grid view Pin
sugunavathysubramanian28-Feb-08 20:34
sugunavathysubramanian28-Feb-08 20:34 
AnswerRe: how to pass argument via linkbutton in grid view Pin
Soumini Ramakrishnan29-Feb-08 21:04
Soumini Ramakrishnan29-Feb-08 21:04 
GeneralAny one knows how to encrypt, decrypt jpeg images in c#.net Pin
sudhakar7928-Feb-08 19:46
sudhakar7928-Feb-08 19:46 
QuestionIs passing an object by Type more effecient? Pin
Richard Blythe28-Feb-08 19:22
Richard Blythe28-Feb-08 19:22 
Hey Guys!
I downloaded the source code to Paint.Net by Rick Brewster. While browsing the code, I noticed that some the classes are being passed by Type. The method that accepts the type then must cast it into a physical class. Here's an example:

private void SetPage(Type pageType)
{
ConstructorInfo ci = pageType.GetConstructor(Type.EmptyTypes);
object obj = ci.Invoke(new object[0]);
WizardPage page = (WizardPage)obj;
...

If this method more efficient, I'll be making some changes to my code. Can anybody give the scoop on this?

Thanks,
Richard

If you could rent a programmer a hour and a half for a dollar and a half, how much would he charge for 10 hours?

AnswerRe: Is passing an object by Type more effecient? Pin
Roger Alsing28-Feb-08 20:36
Roger Alsing28-Feb-08 20:36 
AnswerRe: Is passing an object by Type more effecient? Pin
Vikram A Punathambekar28-Feb-08 22:47
Vikram A Punathambekar28-Feb-08 22:47 
QuestionHow to update values of combobox in datagridview when new row inserted? Pin
avtar11128-Feb-08 19:16
avtar11128-Feb-08 19:16 
GeneralRe: How to update values of combobox in datagridview when new row inserted? Pin
Elina Blank1-Mar-08 11:23
sitebuilderElina Blank1-Mar-08 11:23 
GeneralPrint Panel Control Pin
D i x y28-Feb-08 18:32
D i x y28-Feb-08 18:32 
AnswerRe: Print Panel Control Pin
Ravi Bhavnani28-Feb-08 19:02
professionalRavi Bhavnani28-Feb-08 19:02 
GeneralRe: Print Panel Control Pin
Richard Blythe28-Feb-08 19:08
Richard Blythe28-Feb-08 19:08 
GeneralRe: Print Panel Control Pin
mychibex6-May-10 8:47
mychibex6-May-10 8:47 
GeneralHard Disk Serial Number Pin
M Riaz Bashir28-Feb-08 18:29
M Riaz Bashir28-Feb-08 18:29 
AnswerRe: Hard Disk Serial Number Pin
Ravi Bhavnani28-Feb-08 19:01
professionalRavi Bhavnani28-Feb-08 19:01 
GeneralRe: Hard Disk Serial Number Pin
M Riaz Bashir28-Feb-08 19:15
M Riaz Bashir28-Feb-08 19:15 
GeneralReformating decimal numbers Pin
Charith Jayasundara28-Feb-08 18:13
Charith Jayasundara28-Feb-08 18:13 
GeneralRe: Reformating decimal numbers Pin
Christian Graus28-Feb-08 18:28
protectorChristian Graus28-Feb-08 18:28 
GeneralRe: Reformating decimal numbers Pin
Charith Jayasundara28-Feb-08 18:35
Charith Jayasundara28-Feb-08 18:35 
GeneralRe: Reformating decimal numbers Pin
Charith Jayasundara28-Feb-08 18:39
Charith Jayasundara28-Feb-08 18:39 
GeneralForm Location on single/dual monitors Pin
nilam247728-Feb-08 17:22
nilam247728-Feb-08 17:22 
GeneralRe: Form Location on single/dual monitors Pin
Christian Graus28-Feb-08 17:28
protectorChristian Graus28-Feb-08 17:28 

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.