// override object.Equals public override bool Equals(object obj) { // // See the full list of guidelines at // http://go.microsoft.com/fwlink/?LinkID=85237 // and also the guidance for operator== at // http://go.microsoft.com/fwlink/?LinkId=85238 // if (obj == null || GetType() != obj.GetType()) { return(false); } // TODO: write your implementation of Equals() here cproperty property = obj as cproperty; if (property.id == id && property.MTIME == MTIME && property.terminal == terminal && property.PMONEY == PMONEY && property.CONTACTSID == CONTACTSID) { return(true); } return(false); }
public object Clone(cproperty property) { if (property == null) { property = new cproperty(); } property.id = id; property.MTIME = MTIME; property.PMONEY = PMONEY; property.terminal = terminal; property.CONTACTSID = CONTACTSID; return(property); }
public object Clone() { cproperty property = new cproperty(); return(Clone(property)); }