Пример #1
0
        public override bool Freeze()
        {
            bool gotFrozen = base.Freeze();

            if (gotFrozen)
            {
                if (_returnType != null)
                {
                    _returnType.Freeze();
                }
                foreach (var p in _parameters)
                {
                    p.Freeze();
                }
                foreach (var p in _genericInstanceTypeParameters)
                {
                    p.Freeze();
                }
                foreach (var p in _genericInstanceMethodParameters)
                {
                    p.Freeze();
                }
            }

            return(gotFrozen);
        }
Пример #2
0
        public override bool Freeze()
        {
            bool gotFrozen = base.Freeze();

            if (gotFrozen)
            {
                if (_type != null)
                {
                    _type.Freeze();
                }

                // TODO: do we want to freeze the annotations as well?
                //       may this is not neccessary, since we do no optimizations
                //       on them.
            }

            return(gotFrozen);
        }