When is "Constant" class variable initialized

I have a constant int variable defined as a class variable:

My class is defined like this:

    public class ABC : XYZ
        private const int constantNumber = 600;

        public ABC(): base(constantNumber)


Would it be available by the time it calls the base constructor (i.e. before calling it’s own constructor)?

When exactly does it get defined?

Source: .net

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.