/// <summary>
        /// This is used to raise the <see cref="ReportWarning" /> event
        /// </summary>
        /// <param name="args">The event arguments</param>
        protected virtual void OnReportWarning(CommentsCacheEventArgs args)
        {
            var handler = ReportWarning;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Пример #2
0
        /// <summary>
        /// This is used to raise the <see cref="ReportWarning" /> event
        /// </summary>
        /// <param name="args">The event arguments</param>
        protected virtual void OnReportWarning(CommentsCacheEventArgs args)
        {
            var handler = ReportWarning;

            if(handler != null)
                handler(this, args);
        }
 //=====================================================================
 /// <summary>
 /// Report a duplicate key warning
 /// </summary>
 /// <param name="sender">The sender of the event</param>
 /// <param name="e">The event arguments</param>
 private static void commentsCache_ReportWarning(object sender, CommentsCacheEventArgs e)
 {
     if(showDupWarning)
         Console.WriteLine(e.Message);
 }
Пример #4
0
 /// <summary>
 /// This is used to raise the <see cref="ReportWarning" /> event
 /// </summary>
 /// <param name="args">The event arguments</param>
 protected virtual void OnReportWarning(CommentsCacheEventArgs args)
 {
     ReportWarning?.Invoke(this, args);
 }