C# Класс System.ComponentModel.Design.Serialization.ContextStack

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Append ( object context ) : void

Appends an object to the end of the stack, rather than pushing it onto the top of the stack. This method allows a serializer to communicate with other serializers by adding contextual data that does not have to be popped in order. There is no way to remove an object that was appended to the end of the stack without popping all other objects.

Pop ( ) : object

Pops the current object off of the stack, returning its value.

Push ( object context ) : void

Pushes the given object onto the stack.

this ( Type type ) : object

Retrieves the first object on the stack that inherits from or implements the given type, or null if no object on the stack implements the type.

this ( int level ) : object

Retrieves the object on the stack at the given level, or null if no object exists at that level.

Описание методов

Append() публичный Метод

Appends an object to the end of the stack, rather than pushing it onto the top of the stack. This method allows a serializer to communicate with other serializers by adding contextual data that does not have to be popped in order. There is no way to remove an object that was appended to the end of the stack without popping all other objects.
public Append ( object context ) : void
context object
Результат void

Pop() публичный Метод

Pops the current object off of the stack, returning its value.
public Pop ( ) : object
Результат object

Push() публичный Метод

Pushes the given object onto the stack.
public Push ( object context ) : void
context object
Результат void

this() публичный Метод

Retrieves the first object on the stack that inherits from or implements the given type, or null if no object on the stack implements the type.
public this ( Type type ) : object
type Type
Результат object

this() публичный Метод

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
Результат object