Skip to content

SourceFile.Equals Method ​

Overloads ​

NameDescription
Equals(SourceFile)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.

Equals(SourceFile) ​

Indicates whether the current object is equal to another object of the same type.

c#
public new bool Equals(SourceFile? other);

View source

Parameters ​

NameTypeDescription
otherSourceFileAn object to compare with this object.

Returns ​

Boolean

true if the current object is equal to the other parameter; otherwise, false.

Equals(Object) ​

Determines whether the specified object is equal to the current object.

c#
public sealed override bool Equals(object? obj);

View source

Parameters ​

NameTypeDescription
objObjectThe object to compare with the current object.

Returns ​

Boolean

true if the specified object is equal to the current object; otherwise, false.