private static IEnumerable <DmiManagementControllerHostInterfaceProtocolRecord> AsDmiCollectionFrom(ManagementControllerHostInterfaceProtocolRecordsCollection elements) { var items = new Collection <DmiManagementControllerHostInterfaceProtocolRecord>(); foreach (var element in elements) { items.Add(new DmiManagementControllerHostInterfaceProtocolRecord(element.Properties)); } return(items); }
/// <inheritdoc /> /// <summary> /// Initialize a new instance of the class <see cref="T:iTin.Core.Hardware.Specification.Smbios.DmiManagementControllerHostInterfaceProtocolRecordsCollection" />. /// </summary> /// <param name="elements">Item list.</param> internal DmiManagementControllerHostInterfaceProtocolRecordsCollection(ManagementControllerHostInterfaceProtocolRecordsCollection elements) : base(AsDmiCollectionFrom(elements).ToList()) { }