Click here to Skip to main content
15,565,146 members
Home / Discussions / C#
   

C#

 
GeneralRe: RadGrid, DataTable And Caption Problem Pin
Bert delaVega29-Apr-08 9:17
Bert delaVega29-Apr-08 9:17 
GeneralRe: RadGrid, DataTable And Caption Problem Pin
KlimUser29-Apr-08 11:47
KlimUser29-Apr-08 11:47 
GeneralSomething basic Pin
Spykraft29-Apr-08 8:13
Spykraft29-Apr-08 8:13 
GeneralRe: Something basic Pin
PIEBALDconsult29-Apr-08 8:24
professionalPIEBALDconsult29-Apr-08 8:24 
GeneralRe: Something basic Pin
carbon_golem29-Apr-08 8:28
carbon_golem29-Apr-08 8:28 
GeneralRe: Something basic Pin
PIEBALDconsult29-Apr-08 13:11
professionalPIEBALDconsult29-Apr-08 13:11 
GeneralRe: Something basic Pin
Spykraft29-Apr-08 8:38
Spykraft29-Apr-08 8:38 
GeneralRe: Something basic Pin
carbon_golem29-Apr-08 9:06
carbon_golem29-Apr-08 9:06 
Have you timed it yourself? You could also put together a test app and run it through ildasm to look at the IL. Regardless, the constructors get called if they're in a public method or not. The constructor in B (there's one that the compiler generates even if you don't type it in yourself - use ildasm and see), it gets called. Period. Any instance of any object needs a sync block index and a type pointer, plus all the space for it's members on the heap. Doesn't matter if you make your object family in a Factory Method or not, they get called. With the Method call there's additional overhead for putting the instruction on the stack and making the call, plus the return.

Scott P

"Run for your life from any man who tells you that money is evil. That sentence is the leper's bell of an approaching looter." --Ayn Rand

GeneralRe: Something basic Pin
Spykraft29-Apr-08 13:11
Spykraft29-Apr-08 13:11 
GeneralRe: Something basic Pin
carbon_golem29-Apr-08 17:59
carbon_golem29-Apr-08 17:59 
GeneralRe: Something basic Pin
PIEBALDconsult29-Apr-08 10:31
professionalPIEBALDconsult29-Apr-08 10:31 
GeneralDatagridview and keyenter Pin
Canann29-Apr-08 5:43
Canann29-Apr-08 5:43 
QuestionRe: Datagridview and keyenter Pin
Canann30-Apr-08 3:51
Canann30-Apr-08 3:51 
QuestionHow to generate Typed DataSet with CodeDom ? Pin
hdv21229-Apr-08 4:03
hdv21229-Apr-08 4:03 
Generalanti-pattern in GC Pin
George_George29-Apr-08 3:59
George_George29-Apr-08 3:59 
GeneralRe: anti-pattern in GC Pin
Colin Angus Mackay29-Apr-08 5:03
Colin Angus Mackay29-Apr-08 5:03 
GeneralRe: anti-pattern in GC Pin
George_George29-Apr-08 5:26
George_George29-Apr-08 5:26 
GeneralRe: anti-pattern in GC Pin
led mike29-Apr-08 5:53
led mike29-Apr-08 5:53 
GeneralRe: anti-pattern in GC Pin
George_George29-Apr-08 5:59
George_George29-Apr-08 5:59 
GeneralRe: anti-pattern in GC Pin
led mike29-Apr-08 6:40
led mike29-Apr-08 6:40 
GeneralRe: anti-pattern in GC Pin
George_George29-Apr-08 21:41
George_George29-Apr-08 21:41 
GeneralRe: anti-pattern in GC Pin
led mike30-Apr-08 5:50
led mike30-Apr-08 5:50 
GeneralRe: anti-pattern in GC Pin
George_George30-Apr-08 23:06
George_George30-Apr-08 23:06 
GeneralRe: anti-pattern in GC Pin
led mike1-May-08 7:18
led mike1-May-08 7:18 
GeneralRe: anti-pattern in GC Pin
George_George1-May-08 22:47
George_George1-May-08 22:47 

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.