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

API Browser

Member group

Equals

Declaring type: Path
Module: System.Storage
Assembly: System.Runtime.dll
Source file: Path.rvn

Overloads / Variants

Equals

func Equals(other: Path) -> bool

Source file: Path.rvn

Implements EquatableTo<Path>.Equals

Compares accepted spellings using ordinal equality.

Parameters

Name Type Description
other Path The non-null validated logical path to compare.

Return value

Boolean

True when the spellings are identical.

Remarks

Implements EquatableTo&lt;Path&gt;. Requires a non-null Path, matching EquatableTo&lt;T&gt;.Equals(T); this contract does not require nullable value types. Object.Equals(Object?) is the separate null-aware overload. No provider resolution or filesystem identity comparison is performed.

Equals

virtual override func Equals(other: object?) -> bool

Source file: Path.rvn

Overrides Object.Equals

Compares another Path by its exact accepted spelling through Object dispatch.

Parameters

Name Type Description
other Object? A Path, another object, or null.

Return value

Boolean

True for a Path with identical spelling; false for null or another type.