Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert to hex Pin
Eslam Afifi17-Jun-08 2:20
Eslam Afifi17-Jun-08 2:20 
GeneralRe: Convert to hex Pin
Susanmat17-Jun-08 19:34
Susanmat17-Jun-08 19:34 
GeneralRe: Convert to hex Pin
Eslam Afifi17-Jun-08 20:39
Eslam Afifi17-Jun-08 20:39 
QuestionCode for detecting all the firewalls installed on a system Pin
Neeraj Kr15-Jun-08 21:03
Neeraj Kr15-Jun-08 21:03 
AnswerRe: Code for detecting all the firewalls installed on a system Pin
Simon P Stevens16-Jun-08 1:57
Simon P Stevens16-Jun-08 1:57 
QuestionSwitching between forms Pin
Christian Flutcher15-Jun-08 20:10
Christian Flutcher15-Jun-08 20:10 
AnswerRe: Switching between forms Pin
Simon P Stevens16-Jun-08 2:00
Simon P Stevens16-Jun-08 2:00 
Questiondefault constructor? Pin
George_George15-Jun-08 19:25
George_George15-Jun-08 19:25 
Hello everyone,


From the IL for the following code, seems there is default constructor for both value and reference types which accepts null argument? Are they added by CLR directly (from .locals init IL statement)?

    class Program
    {
        struct Foo
        {
            int abc;
        }

        class Goo
        {
            public int abc;
        }

        
        static void Main(string[] args)
        {
            Foo f;

            Goo g;

            return;
        }
    }

.method private hidebysig static void Main(string[] args) cil managed
{
    .entrypoint
    .maxstack 0
    .locals init (
        [0] valuetype TestStruct1.Program/Foo f,
        [1] class TestStruct1.Program/Goo g)
    L_0000: nop 
    L_0001: br.s L_0003
    L_0003: ret 
}



thanks in advance,
George
AnswerRe: default constructor? Pin
S. Senthil Kumar15-Jun-08 19:31
S. Senthil Kumar15-Jun-08 19:31 
GeneralRe: default constructor? Pin
George_George15-Jun-08 19:36
George_George15-Jun-08 19:36 
GeneralRe: default constructor? Pin
Christian Flutcher15-Jun-08 20:13
Christian Flutcher15-Jun-08 20:13 
GeneralRe: default constructor? Pin
S. Senthil Kumar15-Jun-08 20:40
S. Senthil Kumar15-Jun-08 20:40 
GeneralRe: default constructor? Pin
Christian Flutcher15-Jun-08 20:44
Christian Flutcher15-Jun-08 20:44 
GeneralRe: default constructor? Pin
George_George15-Jun-08 20:45
George_George15-Jun-08 20:45 
GeneralRe: default constructor? Pin
Guffa15-Jun-08 21:39
Guffa15-Jun-08 21:39 
GeneralRe: default constructor? Pin
George_George15-Jun-08 21:48
George_George15-Jun-08 21:48 
GeneralRe: default constructor? Pin
Guffa15-Jun-08 22:05
Guffa15-Jun-08 22:05 
GeneralRe: default constructor? Pin
George_George15-Jun-08 22:17
George_George15-Jun-08 22:17 
GeneralRe: default constructor? Pin
Guffa16-Jun-08 1:12
Guffa16-Jun-08 1:12 
GeneralRe: default constructor? Pin
George_George16-Jun-08 22:25
George_George16-Jun-08 22:25 
GeneralRe: default constructor? Pin
S. Senthil Kumar15-Jun-08 23:11
S. Senthil Kumar15-Jun-08 23:11 
GeneralRe: default constructor? Pin
Guffa16-Jun-08 1:03
Guffa16-Jun-08 1:03 
GeneralRe: default constructor? Pin
S. Senthil Kumar15-Jun-08 20:45
S. Senthil Kumar15-Jun-08 20:45 
GeneralRe: default constructor? Pin
George_George15-Jun-08 20:47
George_George15-Jun-08 20:47 
GeneralRe: default constructor? Pin
S. Senthil Kumar15-Jun-08 20:50
S. Senthil Kumar15-Jun-08 20:50 

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.