153 references to Except
Aspire.Hosting.Testing.Tests (1)
TestingBuilderTests.cs (1)
24var missingProperties = realBuilderProperties.Except(testBuilderProperties).ToList();
Aspire.Workload.Tests (1)
WorkloadTestsBase.cs (1)
251Assert.Fail($"Expected rows not found: {string.Join(", ", expectedRowsTable.Keys.Except(foundNames))}");
ClientSample (1)
Program.cs (1)
20args = args.Except(new[] { "--debug" }).ToArray();
CodeGenerator (1)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
84.Except(NonApiHeaders)
dotnet-dev-certs (4)
src\Shared\CertificateGeneration\CertificateManager.cs (4)
116var invalidCertificates = matchingCertificates.Except(validCertificates); 127var certificatesToDispose = certificates.Except(matchingCertificates); 204var excludedCertificates = certificates.Except(filteredCertificates); 470var excludedCertificates = certificates.Except(filteredCertificates);
dotnet-svcutil-lib (5)
Bootstrapper\SvcutilBootstrapper.cs (1)
49return targetFramework.IsDnx && references.Where(r => !r.IsFramework).Except(TargetFrameworkHelper.ServiceModelPackages).Count() > 0;
CommandProcessorOptions.cs (1)
499var paramsFiles = jsonFiles.Except(excludeJsonFiles).Where(fn => Path.GetFileName(fn).Equals(CommandProcessorOptions.SvcutilParamsFileName, RuntimeEnvironmentHelper.FileStringComparison) ||
Shared\MSBuildProj.cs (1)
769dependencies = packageReferences.Union(assemblyReferences).Except(excludeDependencies);
Tool.cs (1)
122foreach (string warning in options.Warnings.Distinct().Except(earlyWarnings))
TypeLoader.cs (1)
55listType = listType.Except(GetUnAvailableTypes(listType)).ToList();
InMemory.FunctionalTests (6)
Http2\Http2ConnectionTests.cs (2)
6077var headers = requestHeaders.Except(new[] { headerField }); 6114var headers = requestHeaders.Except(new[] { headerField }).Concat(new[] { headerField });
Http3\Http3StreamTests.cs (2)
2237var headers = requestHeaders.Except(new[] { headerField }).Concat(new[] { headerField }); 2259var headers = requestHeaders.Except(new[] { headerField });
src\Servers\Kestrel\shared\test\HttpParsingData.cs (2)
361foreach (var method in methods.Except(new[] { "OPTIONS" })) 366foreach (var method in methods.Except(new[] { "CONNECT" }))
installer.tasks (1)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
154.SelectMany(r => (r.Content?.Sections.Except(newSections)).NullAsEmpty())
Microsoft.AspNetCore.App.UnitTests (16)
SharedFxTests.cs (8)
46var missing = TestData.ListedSharedFxAssemblies.Except(actualAssemblies); 47var unexpected = actualAssemblies.Except(TestData.ListedSharedFxAssemblies); 73var missing = expectedAssemblies.Except(actualAssemblies); 74var unexpected = actualAssemblies.Except(expectedAssemblies); 288var missing = expectedAssemblies.Except(actualAssemblies); 289var unexpected = actualAssemblies.Except(expectedAssemblies); 343var missing = expectedPaths.Except(actualPaths); 344var unexpected = actualPaths.Except(expectedPaths);
TargetingPackTests.cs (8)
48var missing = listedTargetingPackAssemblies.Except(actualAssemblies); 49var unexpected = actualAssemblies.Except(listedTargetingPackAssemblies); 264var missing = expectedAssemblies.Except(actualAssemblies); 265var unexpected = actualAssemblies.Except(expectedAssemblies); 332var missing = actualAssemblyNames.Except(actualAssemblyNames); 333var unexpected = actualAssemblyNames.Except(expectedAssemblies); 385var missing = expectedPaths.Except(actualPaths); 386var unexpected = actualPaths.Except(expectedPaths);
Microsoft.AspNetCore.Components.WebView.Maui (2)
BlazorWebViewHandler.cs (2)
122 foreach (var item in newItems.Except(oldItems)) 127 foreach (var item in oldItems.Except(newItems))
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
BlazorWebView.cs (2)
232 foreach (var item in newItems.Except(oldItems)) 237 foreach (var item in oldItems.Except(newItems))
Microsoft.AspNetCore.Components.WebView.Wpf (2)
BlazorWebView.cs (2)
319 foreach (var item in newItems.Except(oldItems)) 324 foreach (var item in oldItems.Except(newItems))
Microsoft.AspNetCore.DeveloperCertificates.XPlat (4)
src\Shared\CertificateGeneration\CertificateManager.cs (4)
116var invalidCertificates = matchingCertificates.Except(validCertificates); 127var certificatesToDispose = certificates.Except(matchingCertificates); 204var excludedCertificates = certificates.Except(filteredCertificates); 470var excludedCertificates = certificates.Except(filteredCertificates);
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
Views\DatabaseErrorPage.Designer.cs (3)
286var contextWithPendingMigrations = Model.ContextDetails.Where(c => c.PendingMigrations.Any()).Except(contextWithNoDBOrMigrations); 478var contextWithPendingModelChanges = Model.ContextDetails.Where(c => c.PendingModelChanges).Except(contextWithNoDBOrMigrations).Except(contextWithPendingMigrations);
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
HealthCheckOptions.cs (1)
52var missingHealthStatus = Enum.GetValues<HealthStatus>().Except(mapping.Keys).ToList();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (1)
49.Except(GetAsyncSuffixExceptions())
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (1)
49.Except(GetAsyncSuffixExceptions())
Microsoft.AspNetCore.Identity.Test (1)
src\Identity\test\Shared\ApiConsistencyTestBase.cs (1)
49.Except(GetAsyncSuffixExceptions())
Microsoft.AspNetCore.Server.Kestrel.Core (4)
src\Shared\CertificateGeneration\CertificateManager.cs (4)
116var invalidCertificates = matchingCertificates.Except(validCertificates); 127var certificatesToDispose = certificates.Except(matchingCertificates); 204var excludedCertificates = certificates.Except(filteredCertificates); 470var excludedCertificates = certificates.Except(filteredCertificates);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\KnownHeaders.cs (1)
84.Except(NonApiHeaders)
src\Servers\Kestrel\shared\test\HttpParsingData.cs (2)
361foreach (var method in methods.Except(new[] { "OPTIONS" })) 366foreach (var method in methods.Except(new[] { "CONNECT" }))
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubReflectionHelper.cs (1)
17return methods.Except(excludedInterfaceMethods).Where(IsHubMethod);
Microsoft.Build (1)
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (1)
54availableTypes.Except(checkTypes).ToList()
Microsoft.Build.Engine.UnitTests (3)
BackEnd\BuildManager_Tests.cs (1)
3525string directory = Directory.EnumerateDirectories(cacheDirectory).Except(exceptCacheDirectories).First();
BackEnd\DebugUtils_tests.cs (1)
36var exceptionFile = exceptionFiles.Except(exceptionFilesBefore).Single();
Graph\GraphLoadedFromSolution_tests.cs (1)
568var solutionOnlyEdges = graphFromSolutionEdges.Keys.Except(graphEdges.Keys).ToList();
Microsoft.Build.Framework (1)
Profiler\ProfilerResult.cs (1)
38!ProfiledLocations.Except(result.ProfiledLocations).Any());
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
505foreach (FileInfo file in newFiles.Except(_originalFiles).Select(f => new FileInfo(f)))
Microsoft.Cci.Extensions (1)
Writers\CSharp\CSharpWriter.cs (1)
226var excludedFields = fields.Except(includedVisibleFields).Where(f => !f.IsStatic);
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisResult.cs (1)
90var excludedAnalyzers = Analyzers.Except(analyzers);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
172=> symbol.ExplicitOrImplicitInterfaceImplementations().Except(symbol.ExplicitInterfaceImplementations()).ToImmutableArray();
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
76var paramsAfterCurrentParam = parameterNames.Except(paramsBeforeCurrentParam).ToList();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
1743.Except(new[] {
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
843var group2 = semanticDiagnostics.Except(group1).ToImmutableArray();
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (2)
83var captures = dataFlow.CapturedInside.Except(dataFlow.VariablesDeclared).Except(declaredSymbol.Parameters).ToList(); 311typeParameters.RemoveRange(unusedTypeParameters.Except(reservedTypeParameters));
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
202=> existingNamedParameters.Except(parameterList.Select(p => p.Name)).IsEmpty();
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
139return existingNamedParameters.Except(parameterList.Select(p => p.Name)).IsEmpty();
Microsoft.CodeAnalysis.EditorFeatures (2)
Workspaces\AbstractTextBufferVisibilityTracker.cs (2)
193var removedViews = TextViews.Except(associatedTextViews); 194var addedViews = associatedTextViews.Except(TextViews);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
LanguageServer\AbstractLspBuildOnlyDiagnosticsTests.cs (2)
28var missing = ExpectedDiagnosticCodes.Except(actualDiagnosticCodes).OrderBy(k => k).ToList(); 42var extra = actualDiagnosticCodes.Except(ExpectedDiagnosticCodes);
Microsoft.CodeAnalysis.Features (4)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.State.cs (1)
120!parameterNamesForSelectedMembers.Except(constructorParams.Select(p => p.Name)).Any();
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
408var symbolsMissingInLinkedContext = symbolToContext.Keys.Except(symbols);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
254var captures = analysis.CapturedInside.Except(analysis.VariablesDeclared).ToImmutableArray();
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (1)
76var paramsAfterCurrentParam = parameterNames.Except(paramsBeforeCurrentParam).ToList();
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.ProjectStates.cs (2)
145var addedStates = DiffStateSets(project.AnalyzerReferences.Except(entry.AnalyzerReferences), newMapPerReference, newMap); 146var removedStates = DiffStateSets(entry.AnalyzerReferences.Except(project.AnalyzerReferences), entry.MapPerReferences, entry.StateSetMap);
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\TestUtils.cs (2)
70var mismatch5 = await GetAssetFromAssetServiceAsync(allChecksumsFromRequest.Except(assetMapFromNewSolution.Keys)).ConfigureAwait(false); 73var mismatch6 = await GetAssetFromAssetServiceAsync(allChecksumsFromRequest.Except(assetMapFromIncrementalSolution.Keys)).ConfigureAwait(false);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
175var presentElements = expectedSubset.Except(missingElements);
Microsoft.CodeAnalysis.Workspaces (3)
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
138var removedProjectIds = _projectIdToInfo.Keys.Except(solution.ProjectIds).ToArray();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
172=> symbol.ExplicitOrImplicitInterfaceImplementations().Except(symbol.ExplicitInterfaceImplementations()).ToImmutableArray();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
80return namespaceSymbols.Except(conflicts).ToSet();
Microsoft.DotNet.AsmDiff (2)
AssemblySet.cs (2)
131var assemblyPaths = Assemblies.Except(snapshot).Select(a => a.Location).ToArray(); 132var dependencyPaths = Dependencies.Except(snapshot).Select(a => a.Location).ToArray();
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PushToBuildStorage.cs (1)
189.Except(blobItems)
Microsoft.DotNet.Build.Tasks.Packaging (2)
HarvestPackage.cs (1)
464UpdatedFiles = Files.Except(removeFiles).ToArray();
UpdatePackageIndex.cs (1)
319orphanedAssemblyVersions = orphanedAssemblyVersions.Except(runtimeAssemblyVersions);
Microsoft.DotNet.Helix.Sdk (1)
ProvisioningProfileProvider.cs (1)
149rootLevelAppBundles = rootLevelAppBundles.Except(appBundlesWithProfile).ToHashSet();
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
254?.Keys.Except(usedFileClasses).OrderBy(p => p)
Microsoft.DotNet.SourceBuild.Tasks (9)
src\UsageReport\ValidateUsageAgainstBaseline.cs (3)
174actual.Usages = actual.Usages.Except(ignoredUsages).ToArray(); 192Added = actual.Except(baseline).ToArray(); 193Removed = baseline.Except(actual).ToArray();
src\UsageReport\WritePackageUsageData.cs (5)
129IEnumerable<PackageIdentity> prebuilt = restored.Except(sourceBuilt).Except(referencePackages); 143.Except(IgnoredProjectAssetsJsonFiles.NullAsEmpty().Select(GetPathRelativeToRoot)) 227toCheck.Except(usages.Select(u => u.PackageIdentity))) 239.Except(restored)
src\UsageReport\WriteUsageReports.cs (1)
219Built = pvp.PackageVersionProp.Except(prev.PackageVersionProp).ToArray()
Microsoft.DotNet.VersionTools (1)
BuildManifest\BuildManifestClient.cs (1)
275.Except(changedSemaphorePaths)
Microsoft.DotNet.XUnitAssert.Tests (4)
EqualityAssertsTests.cs (4)
1110 return !values.Except(other.values).Any() && !other.values.Except(values).Any(); 3339 return !values.Except(other.values).Any() && !other.values.Except(values).Any();
Microsoft.Interop.SourceGeneration (1)
ManualTypeMarshallingHelper.cs (1)
32&& !Modes.Except(other.Modes).Any();
Microsoft.ML.AutoML (3)
TrainerExtensions\TrainerExtensionUtil.cs (2)
93var parentArgParams = sweepParams.Except(boosterParams); 171var parentArgParams = sweepParams.Except(boosterParams);
Utils\SplitUtil.cs (1)
62var columnsToDrop = allColumns.Except(columnsToKeep);
Microsoft.ML.Data (3)
Dirty\ChooseColumnsByIndexTransform.cs (1)
89sources = Enumerable.Range(0, sourceSchema.Count).Except(selectedColumnIndexes).ToArray();
EntryPoints\EntryPointNode.cs (1)
498var missing = _inputBuilder.GetMissingValues().Except(_inputBindingMap.Keys).ToArray();
Utilities\SlotDropper.cs (1)
228return slots.Except(droppedSlots).Select(i => (long)i);
Microsoft.ML.TimeSeries (2)
RootCauseAnalyzer.cs (2)
820if (x.Keys.Except(y.Keys).Any()) 824if (y.Keys.Except(x.Keys).Any())
Microsoft.VisualStudio.LanguageServices (1)
MoveToNamespace\MoveToNamespaceDialogViewModel.cs (1)
30.Concat(availableNamespaces.Except(namespaceHistory).Select(n => new NamespaceItem(false, n)))
System.ComponentModel.Composition (4)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (1)
30return _originalCatalog.Concat(_addedParts).Except(_removedParts).GetEnumerator();
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (2)
700IEnumerable<string> filesToAdd = afterFiles.Except(beforeFiles); 711IEnumerable<string> filesToRemove = beforeFiles.Except(afterFiles);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
504.Except(engineContext.GetRemovedPartManagers()!);
System.Data.Odbc (2)
Common\System\Data\Common\DBConnectionString.cs (2)
309Debug.Assert(!combinedSet._restrictionValues.Except(componentSet._restrictionValues).Any(), "Combined set allows values not allowed by component set"); 335Debug.Assert(!componentSet._restrictionValues.Except(combinedSet._restrictionValues).Any(), "Combined values does not prevent all of the values prevented by the component set");
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\Behavior\SnapLineTests.cs (3)
160foreach (string margin in s_margins.Except(new[] { snapLine2MarginFilter })) 165foreach (string margin in s_paddings.Except(new[] { snapLine2PaddingFilter })) 195foreach (string margin in s_margins.Except(new[] { snapLine2Filter }))
Templates.Blazor.Tests (4)
src\Shared\CertificateGeneration\CertificateManager.cs (4)
116var invalidCertificates = matchingCertificates.Except(validCertificates); 127var certificatesToDispose = certificates.Except(matchingCertificates); 204var excludedCertificates = certificates.Except(filteredCertificates); 470var excludedCertificates = certificates.Except(filteredCertificates);
Templates.Blazor.WebAssembly.Auth.Tests (4)
src\Shared\CertificateGeneration\CertificateManager.cs (4)
116var invalidCertificates = matchingCertificates.Except(validCertificates); 127var certificatesToDispose = certificates.Except(matchingCertificates); 204var excludedCertificates = certificates.Except(filteredCertificates); 470var excludedCertificates = certificates.Except(filteredCertificates);
Templates.Blazor.WebAssembly.Tests (4)
src\Shared\CertificateGeneration\CertificateManager.cs (4)
116var invalidCertificates = matchingCertificates.Except(validCertificates); 127var certificatesToDispose = certificates.Except(matchingCertificates); 204var excludedCertificates = certificates.Except(filteredCertificates); 470var excludedCertificates = certificates.Except(filteredCertificates);
Templates.Mvc.Tests (4)
src\Shared\CertificateGeneration\CertificateManager.cs (4)
116var invalidCertificates = matchingCertificates.Except(validCertificates); 127var certificatesToDispose = certificates.Except(matchingCertificates); 204var excludedCertificates = certificates.Except(filteredCertificates); 470var excludedCertificates = certificates.Except(filteredCertificates);
Templates.Tests (4)
src\Shared\CertificateGeneration\CertificateManager.cs (4)
116var invalidCertificates = matchingCertificates.Except(validCertificates); 127var certificatesToDispose = certificates.Except(matchingCertificates); 204var excludedCertificates = certificates.Except(filteredCertificates); 470var excludedCertificates = certificates.Except(filteredCertificates);