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

Commit c58e40f

Browse files
committed
Fix ReadOnlySpan obsolete message to reference ReadOnlySpan instead of Span
Remove unnecessary CLSCompliant(false) on GetModuleHandle
1 parent 9288c49 commit c58e40f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,11 +1968,11 @@ public void CopyTo(System.Span<T> destination) { }
19681968
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
19691969
public static System.ReadOnlySpan<T> DangerousCreate(object obj, ref T objectData, int length) { throw null; }
19701970
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
1971-
[System.ObsoleteAttribute("Equals() on Span will always throw an exception. Use == instead.")]
1971+
[System.ObsoleteAttribute("Equals() on ReadOnlySpan will always throw an exception. Use == instead.")]
19721972
public override bool Equals(object obj) { throw null; }
19731973
public System.ReadOnlySpan<T>.Enumerator GetEnumerator() { throw null; }
19741974
[System.ComponentModel.EditorBrowsableAttribute((System.ComponentModel.EditorBrowsableState)(1))]
1975-
[System.ObsoleteAttribute("GetHashCode() on Span will always throw an exception.")]
1975+
[System.ObsoleteAttribute("GetHashCode() on ReadOnlySpan will always throw an exception.")]
19761976
public override int GetHashCode() { throw null; }
19771977
public static bool operator ==(System.ReadOnlySpan<T> left, System.ReadOnlySpan<T> right) { throw null; }
19781978
public static implicit operator System.ReadOnlySpan<T> (System.ArraySegment<T> arraySegment) { throw null; }
@@ -2030,7 +2030,6 @@ public partial struct RuntimeTypeHandle : System.Runtime.Serialization.ISerializ
20302030
public override bool Equals(object obj) { throw null; }
20312031
public bool Equals(System.RuntimeTypeHandle handle) { throw null; }
20322032
public override int GetHashCode() { throw null; }
2033-
[System.CLSCompliantAttribute(false)]
20342033
public System.ModuleHandle GetModuleHandle() { throw null; }
20352034
public void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
20362035
public static bool operator ==(object left, System.RuntimeTypeHandle right) { throw null; }

0 commit comments

Comments
 (0)