System.ComponentModel.Design.Serialization.ContextStack.this C# (CSharp) Méthode

this() public méthode

Retrieves the object on the stack at the given level, or null if no object exists at that level.
public this ( int level ) : object
level int
Résultat object
        public object this[int level]
        {
            get
            {
                if (level < 0)
                {
                    throw new ArgumentOutOfRangeException(nameof(level));
                }
                if (_contextStack != null && level < _contextStack.Count)
                {
                    return _contextStack[_contextStack.Count - 1 - level];
                }
                return null;
            }
        }

Same methods

ContextStack::this ( Type type ) : object