public bool Equals(IGameMetaInfo other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(ID == other.ID && Size == other.Size && Difficulty == other.Difficulty); }
public static bool Equals(GameMetaInfo objLeft, IGameMetaInfo objRight) { if (objLeft == null && objRight == null) { return(true); } if (objLeft == null) { return(objRight.Equals(objLeft)); } else { return(objLeft.Equals(objRight)); } }
public GameWithMetaInfo(IGameMetaInfo metaInfo, IGame game) { MetaInfo = metaInfo; Game = game; }