コード例 #1
0
        /// <summary>
        /// Creates and inserts a <see cref="ICompilerModelWarning{T1, T2, T3, T4}"/>
        /// with the <paramref name="message"/>, <paramref name="item1"/>, <paramref name="item2"/>,
        /// <paramref name="item3"/>, <paramref name="item4"/> and
        /// <paramref name="replacements"/> provided.
        /// </summary>
        /// <typeparam name="T1">The kind of <paramref name="item1"/> used to
        /// reference to the primary model element which caused the warning.</typeparam>
        /// <typeparam name="T2">The kind of <paramref name="item2"/> used to
        /// reference to the secondary model element which caused the warning.</typeparam>
        /// <typeparam name="T3">The kind of <paramref name="item3"/> used to
        /// reference to the tertiary model element which caused the warning.</typeparam>
        /// <typeparam name="T4">The kind of <paramref name="item4"/> used to
        /// reference to the quaternary model element which caused the warning.</typeparam>
        /// <param name="message">The <see cref="ICompilerReferenceWarning"/> value associated which
        /// defines the base message text.</param>
        /// <param name="item1">The primary target of the warning.</param>
        /// <param name="item2">The secondary target of the warning.</param>
        /// <param name="item3">The tertiary target of the warning.</param>
        /// <param name="item4">The quaternary target of the warning.</param>
        /// <param name="replacements">A sequence of <see cref="String"/> values
        /// which denote the data points to replace within the <paramref name="message"/> provided.</param>
        /// <returns>A <see cref="ICompilerModelWarning{T1, T2, T3, T4}"/>
        /// which represents the warning.</returns>
        public ICompilerModelWarning <T1, T2, T3, T4> ModelWarning <T1, T2, T3, T4>(ICompilerReferenceWarning message, T1 item1, T2 item2, T3 item3, T4 item4, params string[] replacements)
        {
            var warning = new CompilerModelWarning <T1, T2, T3, T4>(message, item1, item2, item3, item4, replacements);

            base.AddImpl(warning);
            return(warning);
        }
コード例 #2
0
        /// <summary>
        /// Creates and inserts a <see cref="ICompilerModelWarning{T1}"/>
        /// with the <paramref name="message"/>, <paramref name="item1"/>
        /// and <paramref name="replacements"/> provided.
        /// </summary>
        /// <typeparam name="T1">The kind of <paramref name="item1"/> used to
        /// reference to the primary model element which caused the warning.</typeparam>
        /// <param name="message">The <see cref="ICompilerReferenceWarning"/> value associated which
        /// defines the base message text.</param>
        /// <param name="item1">The primary target of the warning.</param>
        /// <param name="replacements">A sequence of <see cref="String"/> values
        /// which denote the data points to replace within the <paramref name="message"/> provided.</param>
        /// <returns>A <see cref="ICompilerModelWarning{T1}"/> which represents the warning.</returns>
        public ICompilerModelWarning <T1> ModelWarning <T1>(ICompilerReferenceWarning message, T1 item1, params string[] replacements)
        {
            var warning = new CompilerModelWarning <T1>(message, item1, replacements);

            base.AddImpl(warning);
            return(warning);
        }