Skip to content

Commit c309019

Browse files
committed
Added comments for #pragma warning disable items
1 parent 018f4a7 commit c309019

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Microsoft.Toolkit.HighPerformance/Buffers/ArrayPoolBufferWriter{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public sealed class ArrayPoolBufferWriter<T> : IBuffer<T>, IMemoryOwner<T>
4141
/// </summary>
4242
private T[]? array;
4343

44-
#pragma warning disable IDE0032
44+
#pragma warning disable IDE0032 // Use field over auto-property (clearer and faster)
4545
/// <summary>
4646
/// The starting offset within <see cref="array"/>.
4747
/// </summary>

Microsoft.Toolkit.HighPerformance/Buffers/MemoryBufferWriter{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class MemoryBufferWriter<T> : IBuffer<T>
3232
/// </summary>
3333
private readonly Memory<T> memory;
3434

35-
#pragma warning disable IDE0032
35+
#pragma warning disable IDE0032 // Use field over auto-property (like in ArrayPoolBufferWriter<T>)
3636
/// <summary>
3737
/// The starting offset within <see cref="memory"/>.
3838
/// </summary>

0 commit comments

Comments
 (0)