Skip to content

Commit 7a7d735

Browse files
committed
Update Form1.cs
1 parent cb3877a commit 7a7d735

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Demo/Form1.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ private void Initialize()
5656
.CreateLogger();
5757

5858
// Intentional dead code for demonstration purposes.
59+
#pragma warning disable CS0162
5960
if (false)
6061
{
6162
// You can also use fluent syntax to configure the sink like this:
@@ -72,6 +73,7 @@ private void Initialize()
7273
.WriteTo.RichTextBox(richTextBox1, formatProvider: new CultureInfo("en-US"))
7374
.CreateLogger();
7475
}
76+
#pragma warning restore CS0162
7577

7678
Log.Debug("Started logger.");
7779
btnDispose.Enabled = true;

0 commit comments

Comments
 (0)