Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Equals

abstract virtual func Equals(other: TypeInfo) -> bool

Declaring type: TypeInfo
Module: System.Introspection
Assembly: System.Runtime.dll
Source file: Descriptors.rvn

Defined by TypeInfo.Equals · Required implementation (no default).

Interface implementation: Required implementation (no default).

Compares represented type identity with another TypeInfo.

Parameters

Name Type Description
other TypeInfo The non-null descriptor to compare; the typed contract takes TypeInfo, not TypeInfo?.

Return value

Boolean

True for the same represented type, including the same generic arguments and element shape.

Remarks

Object.Equals(Object?) is a separate null-aware overload on the runtime implementation. Names and metadata tokens alone do not establish identity.