コード例 #1
0
 public bool EqualByMembers(Computer computer)
 {
     return(computer != null &&
            ComputerType == computer.ComputerType &&
            ModelEqualityByMembers <Processor> .EqualByMembers(Processor, computer.Processor) &&
            Memories.IsEquals(computer.Memories, new ModelEqualityByMembers <Memory>()) &&
            Disks.IsEquals(computer.Disks, new ModelEqualityByMembers <Disk>()) &&
            ModelEqualityByMembers <MotherBoard> .EqualByMembers(MotherBoard, computer.MotherBoard) &&
            Gpus.IsEquals(computer.Gpus, new ModelEqualityByMembers <Gpu>()));
 }