_length = length;
}
- //Debugger Display = System.ReadOnlySpan<T>[length]
- private string DebuggerDisplay => string.Format("System.ReadOnlySpan<{0}>[{1}]", typeof(T).Name, _length);
-
/// <summary>
/// Returns a reference to the 0th element of the Span. If the Span is empty, returns a reference to the location where the 0th element
/// would have been stored. Such a reference can be used for pinning but must never be dereferenced.
/// <summary>
/// Returns a <see cref="String"/> with the name of the type and the number of elements
/// </summary>
- public override string ToString() => string.Format("System.ReadOnlySpan<{0}>[{1}]", typeof(T).Name, Length);
+ public override string ToString() => string.Format("System.ReadOnlySpan<{0}>[{1}]", typeof(T).Name, _length);
/// <summary>
/// Defines an implicit conversion of an array to a <see cref="ReadOnlySpan{T}"/>
_length = length;
}
- //Debugger Display = System.Span<T>[length]
- private string DebuggerDisplay => string.Format("System.Span<{0}>[{1}]", typeof(T).Name, _length);
-
/// <summary>
/// Returns a reference to the 0th element of the Span. If the Span is empty, returns a reference to the location where the 0th element
/// would have been stored. Such a reference can be used for pinning but must never be dereferenced.
/// <summary>
/// Returns a <see cref="String"/> with the name of the type and the number of elements
/// </summary>
- public override string ToString() => string.Format("System.Span<{0}>[{1}]", typeof(T).Name, Length);
+ public override string ToString() => string.Format("System.Span<{0}>[{1}]", typeof(T).Name, _length);
/// <summary>
/// Defines an implicit conversion of an array to a <see cref="Span{T}"/>