TensorSpan<T>.Equals(Object) Method

Definition

Caution

Equals() on TensorSpan 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 TensorSpan 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

Proizvod Verzije (Zastarjelo)
.NET (8 (package-provided), 9 (package-provided), 10 (package-provided))