Dynamicweb 8 Documentation
Equals Method (OrderLineFieldValue)
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
The example of comparing two OrderLineFieldValueCollections
public static bool IsEquals(OrderLineFieldValueCollection col1, OrderLineFieldValueCollection col2)
{
    		//Same count?
    		if (col1.List.Count != col2.List.Count)
    		{
    			return false;
    		}

    		//Same OrderLineFieldValues?
    		foreach (OrderLineFieldValue myValue in col1)
    		{
    			bool found = false;
    			foreach (OrderLineFieldValue otherValue in col2)
    			{
    				if (myValue.Equals(otherValue))
    				{
    					found = true;
    					break;
    				}
    			}
    			if (!found)
    			{
    				return false;
    			}
    		}
    		return true;
}
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

OrderLineFieldValue Class
OrderLineFieldValue Members
Base Implementation in Equals

Send Feedback