Click here to Skip to main content
15,908,841 members
Home / Discussions / C#
   

C#

 
AnswerRe: Custom type casting [modified] Pin
Patricker8-Aug-06 12:00
Patricker8-Aug-06 12:00 
GeneralRe: Custom type casting Pin
Master Toothless One8-Aug-06 13:06
Master Toothless One8-Aug-06 13:06 
Any ideas of how to do something along these lines? In this scenario, foo holds a bunch of variables used in as results from some operations. I have several super classes that inherit foo that have variables that are specific output for that operation.

As an example, say foo holds a return code and input parameters for calling a Process object. bar has a variable that is assigned later on in the calling method. Another class that also inherits from foo has another unrelated variable that is also set later on by the calling function. Basically, I am trying to write a method that calls the Process object and then returns a base type of foo and then I want to be able to assign the variables that are specific to the superclasses without writing a Convert function.

Seems like there is a fairly easy way to do this, but I keep drawing blanks.
GeneralRe: Custom type casting Pin
Patricker8-Aug-06 13:44
Patricker8-Aug-06 13:44 
GeneralRe: Custom type casting [modified] Pin
Master Toothless One8-Aug-06 14:05
Master Toothless One8-Aug-06 14:05 
QuestionDatagrid column headers Pin
Naji.A8-Aug-06 9:51
Naji.A8-Aug-06 9:51 
AnswerRe: Datagrid column headers Pin
_AK_8-Aug-06 18:33
_AK_8-Aug-06 18:33 
GeneralRe: Datagrid column headers Pin
Naji.A9-Aug-06 16:26
Naji.A9-Aug-06 16:26 
Questionauto comboBox Pin
TAREQ F ABUZUHRI8-Aug-06 9:15
TAREQ F ABUZUHRI8-Aug-06 9:15 
AnswerRe: auto comboBox Pin
stancrm8-Aug-06 9:56
stancrm8-Aug-06 9:56 
Questionget files names from subdirectories Pin
Mridang Agarwalla8-Aug-06 7:57
Mridang Agarwalla8-Aug-06 7:57 
AnswerRe: get files names from subdirectories Pin
Stefan Troschuetz8-Aug-06 8:04
Stefan Troschuetz8-Aug-06 8:04 
AnswerRe: get files names from subdirectories Pin
Eric Dahlvang8-Aug-06 9:12
Eric Dahlvang8-Aug-06 9:12 
AnswerRe: get files names from subdirectories Pin
Ramasubramaniam8-Aug-06 10:23
Ramasubramaniam8-Aug-06 10:23 
QuestionListView.LabelEdit not working consistantly Pin
Dan Neely8-Aug-06 7:30
Dan Neely8-Aug-06 7:30 
Questionbase class? Pin
emil.muller8-Aug-06 7:27
emil.muller8-Aug-06 7:27 
AnswerRe: base class? Pin
Patricker8-Aug-06 12:03
Patricker8-Aug-06 12:03 
Questionon run time Pin
TAREQ F ABUZUHRI8-Aug-06 7:15
TAREQ F ABUZUHRI8-Aug-06 7:15 
AnswerRe: on run time Pin
Patricker8-Aug-06 12:10
Patricker8-Aug-06 12:10 
Questionreturn objects to the pool Pin
Ista8-Aug-06 6:47
Ista8-Aug-06 6:47 
GeneralRe: return objects to the pool Pin
Guffa8-Aug-06 7:19
Guffa8-Aug-06 7:19 
AnswerRe: return objects to the pool Pin
Josh Smith8-Aug-06 7:45
Josh Smith8-Aug-06 7:45 
QuestionGDI+: Window region as an Image Pin
Imtiaz Murtaza8-Aug-06 6:11
Imtiaz Murtaza8-Aug-06 6:11 
AnswerRe: GDI+: Window region as an Image Pin
Dustin Metzgar8-Aug-06 6:15
Dustin Metzgar8-Aug-06 6:15 
QuestionMembershipProvider.EncryptPassword Method Pin
seee sharp8-Aug-06 5:57
seee sharp8-Aug-06 5:57 
Questionsplit Pin
TAREQ F ABUZUHRI8-Aug-06 5:54
TAREQ F ABUZUHRI8-Aug-06 5: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.