Click here to Skip to main content
15,905,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sending messages from a thread Pin
caraboss16-Jun-04 4:17
caraboss16-Jun-04 4:17 
GeneralRe: Sending messages from a thread Pin
caraboss16-Jun-04 4:40
caraboss16-Jun-04 4:40 
QuestionIndexer for a variables property? Pin
khan200015-Jun-04 17:00
khan200015-Jun-04 17:00 
AnswerRe: Indexer for a variables property? Pin
Heath Stewart16-Jun-04 3:58
protectorHeath Stewart16-Jun-04 3:58 
GeneralRealmForge GDK Game Development kit Pin
Liskl15-Jun-04 16:37
Liskl15-Jun-04 16:37 
GeneralDrag and Drop to Explorer Pin
Anders Molin15-Jun-04 14:17
professionalAnders Molin15-Jun-04 14:17 
GeneralRe: Drag and Drop to Explorer Pin
Heath Stewart16-Jun-04 3:48
protectorHeath Stewart16-Jun-04 3:48 
GeneralRe: Drag and Drop to Explorer Pin
Anders Molin16-Jun-04 3:52
professionalAnders Molin16-Jun-04 3:52 
GeneralDetermining the currently running processes Pin
sam00715-Jun-04 12:54
sam00715-Jun-04 12:54 
GeneralRe: Determining the currently running processes Pin
Dave Kreskowiak16-Jun-04 3:42
mveDave Kreskowiak16-Jun-04 3:42 
GeneralXmlSerializer - Invalid Xml Header Pin
AndyBewley15-Jun-04 12:11
sussAndyBewley15-Jun-04 12:11 
GeneralRe: XmlSerializer - Invalid Xml Header Pin
Heath Stewart16-Jun-04 3:43
protectorHeath Stewart16-Jun-04 3:43 
GeneralRe: XmlSerializer - Invalid Xml Header Pin
bigTrak17-Jun-04 12:20
bigTrak17-Jun-04 12:20 
GeneralRe: XmlSerializer - Invalid Xml Header Pin
Heath Stewart17-Jun-04 17:09
protectorHeath Stewart17-Jun-04 17:09 
GeneralConstructors Pin
Ganjah78615-Jun-04 11:57
Ganjah78615-Jun-04 11:57 
GeneralRe: Constructors Pin
leppie15-Jun-04 12:07
leppie15-Jun-04 12:07 
GeneralRe: Constructors Pin
Colin Angus Mackay15-Jun-04 12:09
Colin Angus Mackay15-Jun-04 12:09 
GeneralRe: Constructors Pin
Heath Stewart15-Jun-04 12:10
protectorHeath Stewart15-Jun-04 12:10 
GeneralRe: Constructors Pin
Ganjah78615-Jun-04 12:43
Ganjah78615-Jun-04 12:43 
GeneralRe: Constructors Pin
Heath Stewart16-Jun-04 3:06
protectorHeath Stewart16-Jun-04 3:06 
GeneralRe: Constructors Pin
Alvaro Mendez15-Jun-04 12:55
Alvaro Mendez15-Jun-04 12:55 
GeneralRe: Constructors Pin
Heath Stewart16-Jun-04 3:04
protectorHeath Stewart16-Jun-04 3:04 
Really? Try compiling this and examining the IL with ildasm.exe or something:
using System;

public abstract class Test
{
    private Test()
    {
    }

    protected Test(string name)
    {
    }
}

public class Test2 : Test
{
    protected Test2(string name) : base(name)
    {
    }
}
You're right - the default ctor of the base class won't be called, but if it isn't private it will be called. There was no requirement in the original post for the default ctor of the base class to be called.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Constructors Pin
Uwe Keim15-Jun-04 21:18
sitebuilderUwe Keim15-Jun-04 21:18 
GeneralRe: Constructors Pin
Heath Stewart16-Jun-04 3:05
protectorHeath Stewart16-Jun-04 3:05 
GeneralPossible Attribute bug Pin
leppie15-Jun-04 11:18
leppie15-Jun-04 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.