private static IEnumerable <DmiPeerDevice> AsDmiCollectionFrom(PeerDevicesCollection elements) { var items = new Collection <DmiPeerDevice>(); foreach (var element in elements) { items.Add(new DmiPeerDevice(element.Properties)); } return(items); }
/// <inheritdoc/> /// <summary> /// Initialize a new instance of the class <see cref="DmiPeerDevicesCollection"/>. /// </summary> /// <param name="elements">Item list.</param> internal DmiPeerDevicesCollection(PeerDevicesCollection elements) : base(AsDmiCollectionFrom(elements).ToList()) { }