public override bool Equals(object obj) { if (obj == null) { return(false); } else { CellStructure cs = obj as CellStructure; bool f = true; if (!this.Cells.Equals(cs.Cells)) { f = false; } if (!this.Description.Equals(cs.Description)) { f = false; } if (!this.Properties.Equals(cs.Properties)) { f = false; } return(f); } }
public Detail(int id, Material material, CellStructure cS, string name, string description, List <Property> property, List <ResearchResult> researchResults) { Id = id; Material = material; CellStructure = cS; Name = name; Description = description; Properties = property; ResearchResults = researchResults; }
public Detail() { Id = 0; Material = new Material(); CellStructure = new CellStructure(); Name = "Unknown"; Description = "Unknown"; Properties = new List <Property>(); ResearchResults = new List <ResearchResult>(); }