예제 #1
0
        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);
        }
예제 #2
0
 /// <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())
 {
 }