troubleshooting Question

C# Collections

Avatar of RameshLathu
RameshLathuFlag for United States of America asked on
.NET ProgrammingC#ASP.NET
8 Comments2 Solutions372 ViewsLast Modified:
Hi Experts,

I have a collection (Collection<PolicyTransaction> LobjThreadPolicyTransactions).

This collection is having a string variable called "PolicyNumber"

In thins list of collection(LobjThreadPolicyTransactions), sometimes, I will be getting same PolicyNumber more than once (Same policy number may have more than one transaction).

I want to check which policy number is repeating and want to keep those records in a separate list.

Basically, I want to get the second repeated item from the collection in VS 2005, in C#.

How to do this? Please help.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros