Example #1
0
 public VideoCardSignil(string cardName, GPUMaker gPUMaker, VideoCardMaker videoCardMaker, VideoCardMemoryMaker videoMemoryMaker, int videoMemorySize)
 {
     CardName         = cardName ?? throw new ArgumentNullException(nameof(cardName));
     GPUMaker         = gPUMaker;
     VideoCardMaker   = videoCardMaker;
     VideoMemoryMaker = videoMemoryMaker;
     VideoMemorySize  = videoMemorySize;
 }
Example #2
0
        public override int GetHashCode()
        {
            var hashCode = 268322596;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CardName);

            hashCode = hashCode * -1521134295 + GPUMaker.GetHashCode();
            hashCode = hashCode * -1521134295 + VideoCardMaker.GetHashCode();
            hashCode = hashCode * -1521134295 + VideoMemoryMaker.GetHashCode();
            hashCode = hashCode * -1521134295 + VideoMemorySize.GetHashCode();
            return(hashCode);
        }