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.
상속: NamedTypeSymbol
예제 #1
0
        internal SynthesizedStaticFieldsHolder EnsureStaticsContainer()
        {
            if (_lazyStaticsContainer == null)
            {
                _lazyStaticsContainer = new SynthesizedStaticFieldsHolder(this);
            }

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

            _syntax = syntax;
            _file   = file;

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

            _syntax = syntax;
            _file = file;

            //
            _staticsContainer = new SynthesizedStaticFieldsHolder(this);
        }