BioBrick.Equals C# (CSharp) Method

Equals() public method

public Equals ( System obj ) : bool
obj System
return bool
    public override bool Equals(System.Object obj)
    {
        if (obj == null)
        {
            return false;
        }
        
        BioBrick b = obj as BioBrick;
        if ((System.Object)b == null)
        {
            return false;
        }

        bool result;

        //check type, name, length
        result = (this._type == b._type) && (this._name == b._name) && (this._size == b._size);

        return result;
    }
}