Example #1
0
 public bool EqualByMembers(Gpu other)
 {
     return(other != null &&
            Name == other.Name &&
            Processor == other.Processor &&
            Cores == other.Cores &&
            Manufacturer == other.Manufacturer &&
            ModelEqualityByMembers <Memory> .EqualByMembers(Memory, other.Memory) &&
            Version == other.Version);
 }
Example #2
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>()));
 }