protected PlSqlBlockStatement(SerializationInfo info, StreamingContext context) : base(info, context) { Declarations = new DeclarationCollection(); ExceptionHandlers = new ExceptionHandlerCollection(); var decls = (SqlStatement[])info.GetValue("Declarations", typeof(SqlStatement[])); foreach (var statement in decls) { Declarations.Add(statement); } var handlers = (ExceptionHandler[])info.GetValue("ExceptionHandlers", typeof(ExceptionHandler[])); foreach (var handler in handlers) { ExceptionHandlers.Add(handler); } }
public DeclarationsNamespace(BindingManager bindingManager, Declaration declaration) { _bindingManager = bindingManager; _declarations = new DeclarationCollection(); _declarations.Add(declaration); }
public DeclarationsNamespace(INamespace parent, TypeSystemServices tagManager, Declaration declaration) { _parent = parent; _declarations = new DeclarationCollection(); _declarations.Add(declaration); }