Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 8427f74

Browse files
authored
Fixing naming inconsistency between System.Runtime and System.Memory refs. (#28529)
1 parent 87dac23 commit 8427f74

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/System.Runtime/ref/System.Runtime.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,13 +1697,14 @@ public void CopyTo(System.Memory<T> destination) { }
16971697
public override bool Equals(object obj) { throw null; }
16981698
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
16991699
public override int GetHashCode() { throw null; }
1700-
public static implicit operator System.Memory<T> (System.ArraySegment<T> arraySegment) { throw null; }
1700+
public static implicit operator System.Memory<T> (System.ArraySegment<T> segment) { throw null; }
17011701
public static implicit operator System.ReadOnlyMemory<T> (System.Memory<T> memory) { throw null; }
17021702
public static implicit operator System.Memory<T> (T[] array) { throw null; }
17031703
public System.Buffers.MemoryHandle Retain(bool pin = false) { throw null; }
17041704
public System.Memory<T> Slice(int start) { throw null; }
17051705
public System.Memory<T> Slice(int start, int length) { throw null; }
17061706
public T[] ToArray() { throw null; }
1707+
public override string ToString() { throw null; }
17071708
public bool TryCopyTo(System.Memory<T> destination) { throw null; }
17081709
}
17091710
public partial class MethodAccessException : System.MemberAccessException
@@ -1944,13 +1945,13 @@ public void CopyTo(System.Memory<T> destination) { }
19441945
public bool Equals(System.ReadOnlyMemory<T> other) { throw null; }
19451946
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
19461947
public override int GetHashCode() { throw null; }
1947-
public override string ToString() { throw null; }
1948-
public static implicit operator System.ReadOnlyMemory<T> (System.ArraySegment<T> arraySegment) { throw null; }
1948+
public static implicit operator System.ReadOnlyMemory<T> (System.ArraySegment<T> segment) { throw null; }
19491949
public static implicit operator System.ReadOnlyMemory<T> (T[] array) { throw null; }
19501950
public System.Buffers.MemoryHandle Retain(bool pin = false) { throw null; }
19511951
public System.ReadOnlyMemory<T> Slice(int start) { throw null; }
19521952
public System.ReadOnlyMemory<T> Slice(int start, int length) { throw null; }
19531953
public T[] ToArray() { throw null; }
1954+
public override string ToString() { throw null; }
19541955
public bool TryCopyTo(System.Memory<T> destination) { throw null; }
19551956
}
19561957
public readonly ref partial struct ReadOnlySpan<T>
@@ -1972,14 +1973,14 @@ public void CopyTo(System.Span<T> destination) { }
19721973
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
19731974
[System.ObsoleteAttribute("GetHashCode() on ReadOnlySpan will always throw an exception.")]
19741975
public override int GetHashCode() { throw null; }
1975-
public override string ToString() { throw null; }
19761976
public static bool operator ==(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; }
1977-
public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> arraySegment) { throw null; }
1977+
public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> segment) { throw null; }
19781978
public static implicit operator System.ReadOnlySpan<T> (T[] array) { throw null; }
19791979
public static bool operator !=(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; }
19801980
public System.ReadOnlySpan<T> Slice(int start) { throw null; }
19811981
public System.ReadOnlySpan<T> Slice(int start, int length) { throw null; }
19821982
public T[] ToArray() { throw null; }
1983+
public override string ToString() { throw null; }
19831984
public bool TryCopyTo(System.Span<T> destination) { throw null; }
19841985
public ref partial struct Enumerator
19851986
{
@@ -2172,15 +2173,15 @@ public void Fill(T value) { }
21722173
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
21732174
[System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")]
21742175
public override int GetHashCode() { throw null; }
2175-
public override string ToString() { throw null; }
21762176
public static bool operator ==(System.Span<T> left, System.Span<T> right) { throw null; }
2177-
public static implicit operator System.Span<T> (System.ArraySegment<T> arraySegment) { throw null; }
2177+
public static implicit operator System.Span<T> (System.ArraySegment<T> segment) { throw null; }
21782178
public static implicit operator System.ReadOnlySpan<T> (System.Span<T> span) { throw null; }
21792179
public static implicit operator System.Span<T> (T[] array) { throw null; }
21802180
public static bool operator !=(System.Span<T> left, System.Span<T> right) { throw null; }
21812181
public System.Span<T> Slice(int start) { throw null; }
21822182
public System.Span<T> Slice(int start, int length) { throw null; }
21832183
public T[] ToArray() { throw null; }
2184+
public override string ToString() { throw null; }
21842185
public bool TryCopyTo(System.Span<T> destination) { throw null; }
21852186
public ref partial struct Enumerator
21862187
{
@@ -3710,7 +3711,7 @@ public partial struct MemoryHandle : System.IDisposable
37103711
{
37113712
private object _dummy;
37123713
[System.CLSCompliantAttribute(false)]
3713-
public unsafe MemoryHandle(System.Buffers.IRetainable owner, void* pointer = null, System.Runtime.InteropServices.GCHandle handle = default(System.Runtime.InteropServices.GCHandle)) { throw null; }
3714+
public unsafe MemoryHandle(System.Buffers.IRetainable retainable, void* pointer = null, System.Runtime.InteropServices.GCHandle handle = default(System.Runtime.InteropServices.GCHandle)) { throw null; }
37143715
public bool HasPointer { get { throw null; } }
37153716
[System.CLSCompliantAttribute(false)]
37163717
public unsafe void* Pointer { get { throw null; } }
@@ -3729,7 +3730,7 @@ public void Dispose() { }
37293730
public abstract System.Buffers.MemoryHandle Pin(int byteOffset = 0);
37303731
public abstract bool Release();
37313732
public abstract void Retain();
3732-
protected internal abstract bool TryGetArray(out System.ArraySegment<T> arraySegment);
3733+
protected internal abstract bool TryGetArray(out System.ArraySegment<T> segment);
37333734
}
37343735
public delegate void ReadOnlySpanAction<T, in TArg>(System.ReadOnlySpan<T> span, TArg arg);
37353736
public delegate void SpanAction<T, in TArg>(System.Span<T> span, TArg arg);

0 commit comments

Comments
 (0)