Check out example codes for "List of 2 different iherent classes c#'". It will help you in understanding the concepts better.

Code Example 1

List<BaseA> list = ...

  var result = list
    .OfType<AA>() // Filter out AA instances only
    .ElementAt(0) // or just First();
    .AID;

Learn ReactJs, React Native from akashmittal.com