Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 13:43
moredip8-Mar-03 13:43 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 13:53
moredip8-Mar-03 13:53 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 14:10
moredip8-Mar-03 14:10 
GeneralRe: Inherited Static Constructors Pin
leppie8-Mar-03 14:25
leppie8-Mar-03 14:25 
GeneralRe: Inherited Static Constructors Pin
moredip8-Mar-03 16:05
moredip8-Mar-03 16:05 
GeneralRe: Inherited Static Constructors Pin
leppie9-Mar-03 7:02
leppie9-Mar-03 7:02 
GeneralRe: Inherited Static Constructors Pin
moredip9-Mar-03 7:26
moredip9-Mar-03 7:26 
GeneralRe: Inherited Static Constructors Pin
leppie9-Mar-03 7:54
leppie9-Mar-03 7:54 
moredip wrote:
Now I can write functions like Delete( uint rowID ) in the base class, and via polymorphism they DELETE from different tables depending on what the type the instantiating class is.

This seems less clean to me than using static functions, but it does the job.


Please look how I did it in my code. I just a nice inherited Delete() function without any parameters. Look at the base class in the Interfaces.cs file (ok the filename is a bit dumb).

To do what you wanna do, will force you to rewrite the each fucntion (i have gone over this).

Best is to think about your whole design again. What you will designing if you succeed, will be some classes that cannot be reused in any way, destroying the concept of OOP. I ussually have to redesign a class structure 4/5 times to make it work in its most effecient way. So just go and sleep on the thoughts for the next few days.

You can mail me your code, I could have a look at the design, maybe some mistunderstandings will be cleared up.

moredip wrote:
I hope I've cleared that up a bit. Sorry, I'm terrible at expressing my ideas on 'paper'!

Same here Poke tongue | ;-P

moredip wrote:
I'm still working on a solution to this using readonly properties - and I might have to dirty my hands a little with Reflection (not sure yet). If you'd like I can send you my code so you can get some idea what I'm working towards.

Now I really dont want to know what you are trying todo with readonly properties. Laugh | :laugh:

I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
GeneralTextBox DataBinding Pin
leppie8-Mar-03 7:24
leppie8-Mar-03 7:24 
GeneralRe: TextBox DataBinding Pin
leppie8-Mar-03 7:31
leppie8-Mar-03 7:31 
GeneralDocking Problem Pin
Mazdak8-Mar-03 7:02
Mazdak8-Mar-03 7:02 
GeneralRe: Docking Problem Pin
leppie8-Mar-03 7:19
leppie8-Mar-03 7:19 
GeneralRe: Docking Problem Pin
Mazdak8-Mar-03 8:15
Mazdak8-Mar-03 8:15 
GeneralRe: Docking Problem Pin
leppie8-Mar-03 8:25
leppie8-Mar-03 8:25 
GeneralRe: Docking Problem Pin
Roger Alsing8-Mar-03 11:33
Roger Alsing8-Mar-03 11:33 
GeneralRe: Docking Problem Pin
leppie8-Mar-03 12:08
leppie8-Mar-03 12:08 
GeneralRe: Docking Problem Pin
Mazdak8-Mar-03 17:53
Mazdak8-Mar-03 17:53 
QuestionAnything Like MFC's CWinThread in C#? Pin
Xytme8-Mar-03 6:33
Xytme8-Mar-03 6:33 
AnswerRe: Anything Like MFC's CWinThread in C#? Pin
Mazdak8-Mar-03 7:04
Mazdak8-Mar-03 7:04 
QuestionAnything Like MFC's CWinThread in C#? Pin
Xytme8-Mar-03 6:33
Xytme8-Mar-03 6:33 
AnswerRe: Anything Like MFC's CWinThread in C#? Pin
David Stone8-Mar-03 6:44
sitebuilderDavid Stone8-Mar-03 6:44 
QuestionIs there anything like MFC's CWinThread in C#? Pin
Xytme8-Mar-03 6:31
Xytme8-Mar-03 6:31 
QuestionIs there anything like MFC's CWinThread in C#? Pin
Xytme8-Mar-03 6:30
Xytme8-Mar-03 6:30 
AnswerRe: Is there anything like MFC's CWinThread in C#? Pin
David Stone8-Mar-03 6:44
sitebuilderDavid Stone8-Mar-03 6:44 
GeneralViewing HTML in C# Pin
Mazdak8-Mar-03 3:00
Mazdak8-Mar-03 3:00 

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.