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)); } }