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