Method Equals
Equals(object?)
This function compares to the provided object for type and value equality.
public override readonly bool Equals(object? obj)
Parameters
obj
objectObject to compare
Returns
- bool
True if object is a Thickness and all sides of it are equal to this Thickness.
Equals(Thickness)
Compares this instance of Thickness with another instance.
public readonly bool Equals(Thickness thickness)
Parameters
thickness
ThicknessThickness instance to compare.
Returns
- bool
true
if this Thickness instance has the same value and unit type as thickness.