src/Microsoft.VisualStudio.ProjectSystem.Managed/Composition/EnumerableExtensions.cs
/// <summary>
/// Enumerates a sequence of extensions, omitting any extensions that throw MEF exceptions.
/// </summary>
/// <typeparam name="T">The type of extension.</typeparam>
/// <typeparam name="TMetadata">The metadata on each extension.</typeparam>
/// <param name="extensions">The collection of extensions.</param>
/// <param name="onlyCreatedValues">
/// <c>true</c> to only enumerate extensions from Lazy's that have previously been created.
/// This is useful in Dispose methods to avoid MEF ObjectDisposedExceptions from accidentally
/// creating values during a container disposal.
/// </param>
/// <returns>The safely constructed sequence of extensions.</returns>
Enumerates a sequence of extensions, omitting any extensions that throw MEF exceptions.
Enumerates a sequence of extensions omitting any extensions that throw MEF exceptions .
internal static IEnumerable<T> ExtensionValues<T, TMetadata>(this IEnumerable<Lazy<T, TMetadata>> extensions, bool onlyCreatedValues = false)
        {
            IEnumerable<Lazy<T>> simpleSequence = extensions;
            return ExtensionValues(simpleSequence, onlyCreatedValues);
        }
internal static IEnumerable < T > ExtensionValues < T , TMetadata > ( this IEnumerable < Lazy < T , TMetadata > > extensions , bool onlyCreatedValues = false ) { IEnumerable < Lazy < T > > simpleSequence = extensions ; return ExtensionValues ( simpleSequence , onlyCreatedValues ) ; }
Enumerates a sequence of extensions, omitting any extensions that throw MEF exceptions.
Enumerates a sequence of extensions omitting any extensions that throw MEF exceptions .
The safely constructed sequence of extensions.
The safely constructed sequence of extensions .
IEnumerable<Lazy<T, TMetadata>>
this
onlyCreatedValues
bool
None
extensions
The collection of extensions.
The collection of extensions .
typeparam
The type of extension.
The type of extension .
typeparam
The metadata on each extension.
The metadata on each extension .