Skip to content

Commit

Permalink
Improve ArraySegment debugging (#90488)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobsaila committed Oct 30, 2023
1 parent cf9bb86 commit e5c631d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ namespace System
// (ie, users could assign a new value to the old location).
[Serializable]
[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
[DebuggerTypeProxy(typeof(ICollectionDebugView<>))]
[DebuggerDisplay("Count = {Count}")]
#pragma warning disable CA1066 // adding IEquatable<T> implementation could change semantics of code like that in xunit that queries for IEquatable vs enumerating contents
public readonly struct ArraySegment<T> : IList<T>, IReadOnlyList<T>
#pragma warning restore CA1066
Expand Down

0 comments on commit e5c631d

Please sign in to comment.