ReadOnlyTensorSpan<T>.Equals(Object) Method

Definition

Caution

Equals() on ReadOnlyTensorSpan will always throw an exception. Use the equality operator instead.

This method is not supported as spans cannot be boxed. To compare two spans, use operator ==.

C#
[System.Obsolete("Equals() on ReadOnlyTensorSpan will always throw an exception. Use the equality operator instead.")]
public override bool Equals(object? obj);

Parameters

obj
Object

Returns

Attributes

Exceptions

In all cases.

Applies to

Product Versions (Obsolete)
.NET (8 (package-provided), 9 (package-provided), 10 (package-provided))