System.Composition.Convention.ImportConventionBuilder.IsSupportedImportManyType C# (CSharp) Method

IsSupportedImportManyType() private method

private IsSupportedImportManyType ( TypeInfo typeInfo ) : bool
typeInfo TypeInfo
return bool
        private bool IsSupportedImportManyType(TypeInfo typeInfo)
        {
            return typeInfo.IsArray ||
                (typeInfo.IsGenericTypeDefinition && s_supportedImportManyTypes.Contains(typeInfo.AsType())) ||
                (typeInfo.AsType().IsConstructedGenericType && s_supportedImportManyTypes.Contains(typeInfo.GetGenericTypeDefinition()));
        }
    }