StatementContext Класс
Определение
Предоставляет расположение, в которое может выполняться сериализация операторов.Provides a location into which statements can be serialized. Этот класс не наследуется.This class cannot be inherited.
public ref class StatementContext sealed
public sealed class StatementContext
type StatementContext = class
Public NotInheritable Class StatementContext
- Наследование
-
StatementContext
Комментарии
Обычно инструкции сериализуются в коллекцию инструкций, которая находится в стеке контекста.Usually, statements are serialized into the statement collection that is on the context stack. Это поведение можно изменить, создав контекст инструкции и вызвав Populate метод с коллекцией объектов, инструкции которых должны храниться в таблице инструкций.You can modify this behavior by creating a statement context and calling the Populate method with a collection of objects whose statements you want stored in the statement table. При сериализации каждого объекта в SerializeToExpression метод его содержимое помещается в таблицу инструкций и сохраняется в контексте.As each object is serialized in the SerializeToExpression method, it has its contents placed in the statement table and saved in the context. При отправке этого объекта в стек вы обязаны интегрировать инструкции, добавленные в него, в собственную коллекцию инструкций.If you push this object on the stack, it is your responsibility to integrate the statements added to it into your own collection of statements.
Конструкторы
StatementContext() |
Инициализирует новый экземпляр класса StatementContext.Initializes a new instance of the StatementContext class. |
Свойства
StatementCollection |
Возвращает коллекцию инструкций, предложенных контекстом инструкций.Gets a collection of statements offered by the statement context. |
Методы
Equals(Object) |
Определяет, равен ли указанный объект текущему объекту.Determines whether the specified object is equal to the current object. (Унаследовано от Object) |
GetHashCode() |
Служит хэш-функцией по умолчанию.Serves as the default hash function. (Унаследовано от Object) |
GetType() |
Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance. (Унаследовано от Object) |
MemberwiseClone() |
Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object. (Унаследовано от Object) |
ToString() |
Возвращает строку, представляющую текущий объект.Returns a string that represents the current object. (Унаследовано от Object) |