numl.Model.StringProperty.Equals C# (CSharp) Method

Equals() public method

Equality test
public Equals ( object obj ) : bool
obj object object to compare
return bool
        public override bool Equals(object obj)
        {
            if(base.Equals(obj) && obj is StringProperty)
            {
                var p = obj as StringProperty;
                if (Dictionary.Length == p.Dictionary.Length &&
                   Exclude.Length == p.Exclude.Length)
                {
                    for (int i = 0; i < Dictionary.Length; i++)
                        if (Dictionary[i] != p.Dictionary[i])
                        return false;

                    for (int i = 0; i < Exclude.Length; i++)
                        if (Exclude[i] != p.Exclude[i])
                            return false;

                    return AsEnum == p.AsEnum &&
                           Separator == p.Separator &&
                           SplitType == p.SplitType;
                }
            }
            return false;
        }