/** * The equals method doesn't always work--mostly on on classes that consist only of primitives. Be careful. */ public bool equals(DistributedEmissionsFamilyPdu rhs) { bool ivarsEqual = true; if (rhs.GetType() != this.GetType()) { return(false); } return(ivarsEqual); }
/** * Compares for reference equality and value equality. */ public bool equals(DistributedEmissionsFamilyPdu rhs) { bool ivarsEqual = true; if(rhs.GetType() != this.GetType()) return false; ivarsEqual = base.Equals(rhs); return ivarsEqual; }