List of 2 different iherent classes c#' code example
Example: 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;
List<BaseA> list = ...
var result = list
.OfType<AA>() // Filter out AA instances only
.ElementAt(0) // or just First();
.AID;