class Compare : IEqualityComparer<PGNsegmentTxMap> { public bool Equals(PGNsegmentTxMap x, PGNsegmentTxMap y) { return x.segmentTx == y.segmentTx && x.PGN == y.PGN; } public int GetHashCode(PGNsegmentTxMap codeh) { return codeh.segmentTx.GetHashCode(); } } for(int i=0;i<database.Count;i++) { PGNsegmentMapLists.Add(new PGNsegmentTxMap(database1[i], database[i])); } PGNsegmentTxMap[] products = PGNsegmentMapLists.ToArray(); IEnumerable<PGNsegmentTxMap> noduplicates = products.Distinct(new Compare());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)