Ramco Ramco

Ramco Ramco

  • 469
  • 2.8k
  • 394.3k

Add Unique records in StudentCollection

May 28 2023 12:18 PM

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)