Partager via


EnumerableExtensions Members

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

The EnumerableExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member ForEach<T>
Execute action for each element of sequence.
Public methodStatic member ToDictionary<TKey, TValue>
Take two sequences and return a IDictionary<TKey, TValue> with the first sequence holding the keys and the corresponding elements of the second sequence containing the values.
Public methodStatic member Zip<T1, T2>(IEnumerable<T1>, IEnumerable<T2>)
Take two sequences and return a new sequence of KeyValuePair<TKey, TValue> objects.
Public methodStatic member Zip<T1, T2, TResult>(IEnumerable<T1>, IEnumerable<T2>, Func<T1, T2, TResult>)
Given a sequence, combine it with another sequence, passing the corresponding elements of each sequence to the zipper action to create a new single value from the two sequence elements. "Zip" here refers to a zipper, not the compression algorithm. The resulting sequence will have the same number of elements as the shorter of sequence1 and sequence2.

See Also

EnumerableExtensions Class

Microsoft.Practices.EnterpriseLibrary.Common.Utility Namespace