Skip to content

Commit

Permalink
Add missing xml docs for System.Numerics (#106290)
Browse files Browse the repository at this point in the history
* Add missing xml docs for System.Numerics

* Update src/libraries/System.Private.CoreLib/src/System/Numerics/TotalOrderIeee754Comparer.cs

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>

---------

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
  • Loading branch information
tannergooding and gewarren authored Aug 14, 2024
1 parent cb42ed8 commit aac99ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,13 @@ public int GetHashCode([DisallowNull] T obj)

public bool Equals(TotalOrderIeee754Comparer<T> other) => true;

/// <summary>Determines whether this instance and a specified object are equal.</summary>
/// <param name="obj">The object to compare with the current instance.</param>
/// <returns><c>true</c> if the current instance and <paramref name="obj" /> are equal; otherwise, <c>false</c>. If <paramref name="obj" /> is <c>null</c>, the method returns <c>false</c>.</returns>
public override bool Equals([NotNullWhen(true)] object? obj) => obj is TotalOrderIeee754Comparer<T>;

/// <summary>Returns the hash code for this instance.</summary>
/// <returns>The hash code.</returns>
public override int GetHashCode() => EqualityComparer<T>.Default.GetHashCode();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2200,6 +2200,7 @@ public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, I
public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
TryFormatCore(destination, out charsWritten, format, provider);

/// <inheritdoc cref="IUtf8SpanFormattable.TryFormat(Span{byte}, out int, ReadOnlySpan{char}, IFormatProvider?)" />
public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
TryFormatCore(utf8Destination, out bytesWritten, format, provider);

Expand Down

0 comments on commit aac99ee

Please sign in to comment.