Exemple #1
0
        internal DomReadWriteErrors GetOrAddErrors()
        {
            // Validation
            this.ValidateErrorsAndDataWillNotCoexist();

            // Get the existing DOM errors node or add a new DOM errors node.
            var domReadWriteErrors = this.GetOrAddNode(DomNodeType.Errors, () => DomReadWriteErrors.Create());

            return(domReadWriteErrors);
        }
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Factory Methods
        public static DomReadWriteErrors Create(params Node <DomNodeType>[] domResources)
        {
            var domReadWriteErrors = new DomReadWriteErrors(domResources);

            return(domReadWriteErrors);
        }