Example #1
0
        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);
            }
        }
Example #2
0
 public DeclarationsNamespace(BindingManager bindingManager, Declaration declaration)
 {
     _bindingManager = bindingManager;
     _declarations   = new DeclarationCollection();
     _declarations.Add(declaration);
 }
Example #3
0
 public DeclarationsNamespace(INamespace parent, TypeSystemServices tagManager, Declaration declaration)
 {
     _parent       = parent;
     _declarations = new DeclarationCollection();
     _declarations.Add(declaration);
 }