Container for class static and const fields. Such fields have to be put in a separate container since they are instantiated in context of current request, not the app domain.
Inheritance: NamedTypeSymbol
        internal SynthesizedStaticFieldsHolder EnsureStaticsContainer()
        {
            if (_lazyStaticsContainer == null)
            {
                _lazyStaticsContainer = new SynthesizedStaticFieldsHolder(this);
            }

            return(_lazyStaticsContainer);
        }
Beispiel #2
0
        public SourceTypeSymbol(SourceFileSymbol file, TypeDecl syntax)
        {
            Contract.ThrowIfNull(file);

            _syntax = syntax;
            _file   = file;

            //
            _staticsContainer = new SynthesizedStaticFieldsHolder(this);
        }
Beispiel #3
0
        public SourceTypeSymbol(SourceFileSymbol file, TypeDecl syntax)
        {
            Contract.ThrowIfNull(file);

            _syntax = syntax;
            _file = file;

            //
            _staticsContainer = new SynthesizedStaticFieldsHolder(this);
        }