2
Answers

Add Unique records in StudentCollection

Photo of Ramco Ramco

Ramco Ramco

2y
455
1

Hi

  I have below code & i want only distinct records in StudentCollection.

List<View_SessionDeliveryParticipant_Detailed_Report> objResult = bALSessionDeliveryParticipant.GetSessionDeliveryParticipantList(Convert.ToDateTime("2020-01-01"), Utility.CurrentDateTime(), MentorCollection, GroupCollection);
                if (objResult != null)
                {
                    foreach (var colum in objResult)
                    {
                        StudentCollection.Add(colum.StudentID.ToString());
                    }
                }

Thanks

Answers (2)