Answers for "List of 2 different iherent classes c#'"

C#
0

List of 2 different iherent classes c#'

List<BaseA> list = ...

  var result = list
    .OfType<AA>() // Filter out AA instances only
    .ElementAt(0) // or just First();
    .AID;
Posted by: Guest on August-23-2020

C# Answers by Framework

Browse Popular Code Answers by Language