Dynamicweb 8 Documentation
Equals Method (OrderLineFieldValueCollection)
Example 

The System.Object to compare with this instance.
Determines whether the specified System.Object is equal to this instance.
Syntax
'Declaration
 
Public Overrides Function Equals( _ 
   ByVal obj As Object _ 
) As Boolean
public override bool Equals( 
   object obj 
)

Parameters

obj
The System.Object to compare with this instance.

Return Value

true if the specified System.Object is equal to this instance; otherwise, false.
Example
In this example we compare two OrderLines to define are they can be merged
public static bool IsCanBeMerged(OrderLine line1, OrderLine line2) 
{
    return line1.ID = line2.ID ||
      (line1.Product.ID = line2.Product.ID &&
       line1.ProductVariantID = line2.ProductVariantID &&
       line1.UnitID = line2.UnitID &&
       line1.OrderLineFieldValues.Equals(line2.OrderLineFieldValues) 
      );
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

OrderLineFieldValueCollection Class
OrderLineFieldValueCollection Members
Base Implementation in Equals

Send Feedback