コード例 #1
0
        public void AddFallback(NestedTaskContainer fallback)
        {
            if (IsFallbackDefined)
            {
                throw new BuildException("The <otherwise> element may only"
                                         + " be defined once.", Location);
            }

            _nestedTaskContainers.Add(fallback);
        }
コード例 #2
0
        public void AddFallback(NestedTaskContainer fallback) {
            if (IsFallbackDefined) {
                throw new BuildException("The <otherwise> element may only"
                    + " be defined once.", Location);
            }

            _nestedTaskContainers.Add(fallback);
        }