[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Length.Equals

Equals Method

Equals(object)

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

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

An object to compare with the current Length.

Returns
Type Description
bool

A bool value. true if the specified object is equal to the current Length; otherwise, false.

Overrides
Examples
var length1 = new Length("1in");
object length2 = new Length("1in");
bool result = length1.Equals(length2); // true

Equals(Length)

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

Declaration
public bool Equals(Length other)
Parameters
Type Name Description
Length other

An object to compare with this object.

Returns
Type Description
bool

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

Examples
var length1 = new Length("1in");
var length2 = new Length("1in");
bool result = length1.Equals(length2); // true