Skip to content

Commit 044ddde

Browse files
committed
Add comments.
1 parent af3abd5 commit 044ddde

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.IO;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
73

84
namespace Microsoft.OpenApi.Writers
95
{
6+
/// <summary>
7+
/// A custom <see cref="StreamWriter"/> which supports setting a <see cref="IFormatProvider"/>.
8+
/// </summary>
109
public class FormattingStreamWriter : StreamWriter
1110
{
11+
/// <summary>
12+
/// Initializes a new instance of the <see cref="FormattingStreamWriter"/> class.
13+
/// </summary>
14+
/// <param name="stream"></param>
15+
/// <param name="formatProvider"></param>
1216
public FormattingStreamWriter(Stream stream, IFormatProvider formatProvider)
1317
: base(stream)
1418
{
1519
this.FormatProvider = formatProvider;
1620
}
1721

22+
/// <summary>
23+
/// The <see cref="IFormatProvider"/> associated with this <see cref="FormattingStreamWriter"/>.
24+
/// </summary>
1825
public override IFormatProvider FormatProvider { get; }
1926
}
2027
}

0 commit comments

Comments
 (0)