C# 클래스 System.ComponentModel.Design.Serialization.ContextStack

파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
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