141 references to SequenceEqual
BuildValidator (1)
LocalSourceResolver.cs (1)
52if (!sourceText.GetChecksum().SequenceEqual(sourceTextInfo.Hash))
Microsoft.CodeAnalysis (28)
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (1)
80_availableReferences.SequenceEqual(other._availableReferences);
CommandLine\SarifDiagnosticComparer.cs (1)
56&& x.ImmutableCustomTags.SequenceEqual(y.ImmutableCustomTags);
CommandLine\SarifErrorLogger.cs (1)
88Debug.Assert(diagnostic.CustomTags.SequenceEqual(diagnostic.Descriptor.ImmutableCustomTags));
Compilation\CompilationOptions.cs (1)
630this.CryptoPublicKey.SequenceEqual(other.CryptoPublicKey) &&
Compilation\LoadDirective.cs (1)
31this.Diagnostics.SequenceEqual(other.Diagnostics);
Compilation\SymbolInfo.cs (1)
89CandidateSymbols.SequenceEqual(other.CandidateSymbols);
Desktop\DesktopAssemblyIdentityComparer.cs (3)
169!value.PublicKeyToken.SequenceEqual(identity.PublicKeyToken)) 258if (identity.PublicKeyToken.SequenceEqual(s_SILVERLIGHT_PLATFORM_PUBLICKEY_STR_L)) 270else if (identity.PublicKeyToken.SequenceEqual(s_SILVERLIGHT_PUBLICKEY_STR_L))
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (1)
68&& this.PublicKeyToken.SequenceEqual(other.PublicKeyToken);
Emit\AnonymousTypeKey.cs (1)
76return (this.IsDelegate == other.IsDelegate) && this.Fields.SequenceEqual(other.Fields);
FileSystem\RelativePathResolver.cs (1)
61other is not null && BaseDirectory == other.BaseDirectory && SearchPaths.SequenceEqual(other.SearchPaths);
InternalUtilities\OneOrMany.cs (1)
202System.Linq.ImmutableArrayExtensions.SequenceEqual(_many, other._many, comparer);
MetadataReference\AssemblyIdentity.cs (4)
492return xToken.SequenceEqual(yToken); 498return x._publicKey.SequenceEqual(y._publicKey); 504return x.PublicKeyToken.SequenceEqual(yToken); 508return xToken.SequenceEqual(y.PublicKeyToken);
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
436if (hasPublicKey && hasPublicKeyToken && !identity.PublicKeyToken.SequenceEqual(publicKeyToken))
MetadataReference\MetadataReferenceProperties.cs (1)
166return Aliases.SequenceEqual(other.Aliases)
PEWriter\CustomDebugInfoWriter.cs (1)
324if (!s1.GetUsedNamespaces(context).SequenceEqual(s2.GetUsedNamespaces(context)))
PEWriter\MetadataWriter.PortablePdb.cs (1)
45x != null && y != null && Equals(x.Parent, y.Parent) && x.GetUsedNamespaces(_context).SequenceEqual(y.GetUsedNamespaces(_context));
SourceFileResolver.cs (2)
144_searchPaths.SequenceEqual(other._searchPaths, StringComparer.Ordinal) && 145_pathMap.SequenceEqual(other._pathMap);
SourceGeneration\Nodes\NodeStateTable.cs (1)
607if (!_states.SequenceEqual(entry._states))
StrongName\DesktopStrongNameProvider.cs (1)
283if (!_keyFileSearchPaths.SequenceEqual(other._keyFileSearchPaths, StringComparer.Ordinal))
Symbols\Attributes\CommonAttributeDataComparer.cs (2)
34attr1.CommonConstructorArguments.SequenceEqual(attr2.CommonConstructorArguments) && 35attr1.NamedArguments.SequenceEqual(attr2.NamedArguments);
Text\SourceText.cs (1)
1160return leftContentHash.SequenceEqual(rightContentHash);
Microsoft.CodeAnalysis.CodeStyle (7)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
61other is not null && BaseDirectory == other.BaseDirectory && SearchPaths.SequenceEqual(other.SearchPaths);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
202System.Linq.ImmutableArrayExtensions.SequenceEqual(_many, other._many, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (3)
349return SymbolSpecifications.SequenceEqual(other.SymbolSpecifications) 350&& NamingStyles.SequenceEqual(other.NamingStyles) 351&& NamingRules.SequenceEqual(other.NamingRules);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
20=> x.SequenceEqual(y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (1)
60return property1.Parameters.SequenceEqual(
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_Lookup.cs (2)
1365&& binderFileIdentifier.FilePathChecksumOpt.SequenceEqual(symbolFileIdentifier.FilePathChecksumOpt); 1527if (key.SequenceEqual(publicKey))
Binder\DecisionDagBuilder.cs (1)
2369this == obj || obj is SequenceTests other && this.GetType() == other.GetType() && RemainingTests.SequenceEqual(other.RemainingTests);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
1908_ => sourceSignature.ParameterRefKinds.SequenceEqual(targetSignature.ParameterRefKinds)
Compilation\CSharpCompilation.cs (1)
2438return x.ContentHash.SequenceEqual(y.ContentHash) && x.Position == y.Position;
CSharpCompilationOptions.cs (1)
744(this.Usings == null ? other.Usings == null : this.Usings.SequenceEqual(other.Usings, StringComparer.Ordinal) &&
Symbols\ArrayTypeSymbol.cs (2)
175if (this.Sizes.SequenceEqual(other.Sizes)) 186return !otherLowerBounds.IsDefault && thisLowerBounds.SequenceEqual(otherLowerBounds);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
742else if (!RefCustomModifiers.SequenceEqual(other.RefCustomModifiers))
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
59|| RefCustomModifiers.SequenceEqual(other.RefCustomModifiers))
Symbols\MemberSignatureComparer.cs (1)
842return SubstituteModifiers(typeMap1, customModifiers1).SequenceEqual(SubstituteModifiers(typeMap2, customModifiers2));
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
855Debug.Assert(initialized == s_defaultStringHandlerAttributeIndexes || indexes == initialized || indexes.SequenceEqual(initialized));
Symbols\NamedTypeSymbol.cs (1)
903return elementNames.IsDefault ? otherElementNames.IsDefault : !otherElementNames.IsDefault && elementNames.SequenceEqual(otherElementNames);
Symbols\SignatureOnlyParameterSymbol.cs (1)
120_refCustomModifiers.SequenceEqual(other._refCustomModifiers) &&
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (5)
37Debug.Assert(result.ExternAliases.SequenceEqual(calculated.ExternAliases)); 39Debug.Assert(result.Usings.SequenceEqual(calculated.Usings)); 215Debug.Assert(result.SequenceEqual(GetAliasesAndUsingsForAsserts(declarationSyntax).GetUsingNamespacesOrTypes(this, declarationSyntax, basesBeingResolved))); 598Debug.Assert(calculated.UsingAliases.SequenceEqual(result.UsingAliases)); 600Debug.Assert(calculated.UsingNamespacesOrTypes.SequenceEqual(result.UsingNamespacesOrTypes));
Symbols\Tuples\TupleTypeSymbol.cs (2)
875bool namesUnchanged = mergedNames.IsDefault ? TupleElementNames.IsDefault : mergedNames.SequenceEqual(TupleElementNames); 964return one.SequenceEqual(other);
Symbols\TypeUnification.cs (6)
34Debug.Assert(substituted1.CustomModifiers.SequenceEqual(substituted2.CustomModifiers)); 92if (TypeSymbol.Equals(t1.Type, t2.Type, TypeCompareKind.CLRSignatureCompareOptions) && t1.CustomModifiers.SequenceEqual(t2.CustomModifiers)) 113if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers)) 130if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers)) 143if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers)) 205if (t1.CustomModifiers.SequenceEqual(t2.CustomModifiers))
Symbols\TypeWithAnnotations.cs (1)
359!this.CustomModifiers.SequenceEqual(other.CustomModifiers))
Utilities\InterceptableLocation.cs (1)
171&& _checksum.SequenceEqual(other._checksum)
Utilities\ValueSetFactory.NumericValueSet.cs (1)
322this._intervals.SequenceEqual(other._intervals);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\StructConstructorTests.cs (1)
4897Assert.True(members.SequenceEqual(constructors));
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\InteractiveSession.cs (1)
289!sourceResolver.SearchPaths.SequenceEqual(_sourceSearchPaths))
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
256if (result.Glyph.HasValue && !c.Tags.SequenceEqual(GlyphTags.GetTags((Glyph)result.Glyph.Value)))
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
MetadataContext.cs (1)
24MetadataBlocks.SequenceEqual(metadataBlocks);
Microsoft.CodeAnalysis.Features (8)
Completion\CompletionHelper.cs (1)
74=> System.Linq.ImmutableArrayExtensions.SequenceEqual(item1.Tags, item2.Tags);
Completion\Providers\UnionCompletionItemComparer.cs (1)
21x is not null && y is not null && x.DisplayText == y.DisplayText && x.Tags.SequenceEqual(y.Tags);
EditAndContinue\CommittedSolution.cs (1)
437=> checksumAlgorithm == sourceText.ChecksumAlgorithm && sourceText.GetChecksum().SequenceEqual(requiredChecksum);
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.cs (1)
57ChildItems.SequenceEqual(other.ChildItems);
NavigationBar\NavigationBarItems\RoslynNavigationBarItem.SymbolItem.cs (1)
108if (!this.InDocumentInfo.Value.spans.SequenceEqual(other.InDocumentInfo!.Value.spans) ||
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
198if (ignoreChecksum || fileChecksum.SequenceEqual(sourceDocument.Checksum))
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
373method1.Parameters.SequenceEqual(method2.Parameters, SymbolEquivalenceComparer.Instance.ParameterEquivalenceComparer);
SymbolSearch\Windows\SymbolSearchUpdateEngine.cs (1)
159GetFullName(symbol.FullName).SequenceEqual(namespaceQuery.Names))
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
427var sourcePathsChanged = !newSourcePaths.SequenceEqual(state.SourceSearchPaths); 428var referencePathsChanged = !newReferencePaths.SequenceEqual(metadataResolver.SearchPaths);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
309if (!sourceText.GetChecksum().SequenceEqual(sourceTextInfo.Hash))
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
CompilationRebuildArtifactResolver.cs (1)
32.Single(x => x.GetChecksum().SequenceEqual(sourceTextInfo.Hash));
RoundTripUtil.cs (2)
168if (!originalEmit.PEBytes.SequenceEqual(rebuildEmit.PEBytes)) 187if (!originalEmit.PdbBytes.SequenceEqual(rebuildEmit.PdbBytes))
Microsoft.CodeAnalysis.Scripting (2)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
61other is not null && BaseDirectory == other.BaseDirectory && SearchPaths.SequenceEqual(other.SearchPaths);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (1)
89Architectures.SequenceEqual(other.Architectures) &&
Microsoft.CodeAnalysis.Test.Utilities (3)
Metadata\MetadataValidation.cs (1)
183if (!md1.RemoveRange(mvidOffset1, 16).SequenceEqual(md1.RemoveRange(mvidOffset2, 16)))
TargetFrameworkUtil.cs (2)
292Debug.Assert(GetReferences(TargetFramework.NetCoreApp).SequenceEqual(NetCoreApp.References)); 293Debug.Assert(GetReferences(TargetFramework.NetFramework).SequenceEqual(NetFramework.References));
Microsoft.CodeAnalysis.UnitTests (23)
Collections\ImmutableArrayExtensionsTests.cs (10)
283Assert.True(a.AddRange(a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 4, 0, 2, 4))); 287Assert.True(a.SequenceEqual(empty.AddRange((IEnumerable<int>)a))); 288Assert.True(a.AddRange((IEnumerable<int>)a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 4, 0, 2, 4))); 300Assert.True(a.SequenceEqual(empty.InsertRange(0, a))); 301Assert.True(a.InsertRange(2, a).SequenceEqual(ImmutableArray.Create<int>(0, 2, 0, 2, 4, 4))); 341Assert.False(a.SequenceEqual(b)); 342Assert.True(a.SequenceEqual(b, StringComparer.OrdinalIgnoreCase)); 344Assert.False(a.SequenceEqual(c)); 345Assert.False(a.SequenceEqual(c, StringComparer.OrdinalIgnoreCase)); 346Assert.False(c.SequenceEqual(a));
Text\SourceTextTests.cs (13)
38Assert.True(text1.GetContentHash().SequenceEqual(text2.GetContentHash())); 196Assert.True(text.GetContentHash().SequenceEqual(changed.GetContentHash())); 230Assert.True(e1.GetContentHash().SequenceEqual(e1.GetContentHash())); 231Assert.True(f.GetContentHash().SequenceEqual(e1.GetContentHash())); 232Assert.True(e1.GetContentHash().SequenceEqual(f.GetContentHash())); 234Assert.True(e2.GetContentHash().SequenceEqual(e2.GetContentHash())); 235Assert.True(e1.GetContentHash().SequenceEqual(e2.GetContentHash())); 236Assert.True(e2.GetContentHash().SequenceEqual(e1.GetContentHash())); 274Assert.True(sourceText1.GetContentHash().SequenceEqual(sourceText2.GetContentHash())); 292Assert.False(sourceText1.GetContentHash().SequenceEqual(sourceText2.GetContentHash())); 297Assert.True(sourceText1.GetChecksum().SequenceEqual(sourceText2.GetChecksum())); 311Assert.True(checksum1.SequenceEqual(checksum2)); 315Assert.False(sourceText1.GetContentHash().SequenceEqual(sourceText2.GetContentHash()));
Microsoft.CodeAnalysis.Workspaces (13)
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
84=> x.SequenceEqual(y);
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
61other is not null && BaseDirectory == other.BaseDirectory && SearchPaths.SequenceEqual(other.SearchPaths);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
202System.Linq.ImmutableArrayExtensions.SequenceEqual(_many, other._many, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (3)
349return SymbolSpecifications.SequenceEqual(other.SymbolSpecifications) 350&& NamingStyles.SequenceEqual(other.NamingStyles) 351&& NamingRules.SequenceEqual(other.NamingRules);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ImmutableArrayComparer.cs (1)
20=> x.SequenceEqual(y);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (1)
60return property1.Parameters.SequenceEqual(
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
743convertedProject.ProjectReference.Aliases.SequenceEqual(properties.Aliases))
Workspace\Solution\ProjectReference.cs (1)
52Aliases.SequenceEqual(reference.Aliases) &&
Workspace\Solution\ProjectState.cs (3)
992Debug.Assert(!oldDocuments.SequenceEqual(newDocuments)); 1018Debug.Assert(!oldDocuments.SequenceEqual(newDocuments)); 1041Debug.Assert(!oldDocuments.SequenceEqual(newDocuments));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
202System.Linq.ImmutableArrayExtensions.SequenceEqual(_many, other._many, comparer);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
MEF\TestComposition.cs (3)
45=> _parts.SequenceEqual(other._parts) && 46_excludedPartTypes.SequenceEqual(other._excludedPartTypes) && 47_assemblies.SequenceEqual(other._assemblies);
Microsoft.Interop.ComInterfaceGenerator (1)
Comparers.cs (1)
40return x.SequenceEqual(y, _elementComparer);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Comparers.cs (1)
44return x.SequenceEqual(y, _elementComparer);
Microsoft.Interop.LibraryImportGenerator (1)
Comparers.cs (1)
40return x.SequenceEqual(y, _elementComparer);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Comparers.cs (1)
40return x.SequenceEqual(y, _elementComparer);
Microsoft.Interop.SourceGeneration (5)
ContainingSyntaxContext.cs (1)
87return ContainingSyntax.SequenceEqual(other.ContainingSyntax)
MethodSignatureDiagnosticLocations.cs (1)
55&& ManagedParameterLocations.SequenceEqual(other.ManagedParameterLocations)
SequenceEqualImmutableArray.cs (1)
40return Array.SequenceEqual(other.Array, Comparer);
SignatureContext.cs (2)
139&& ElementTypeInformation.SequenceEqual(other.ElementTypeInformation) 141&& AdditionalAttributes.SequenceEqual(other.AdditionalAttributes, (IEqualityComparer<AttributeListSyntax>)SyntaxEquivalentComparer.Instance);
Microsoft.ML.Tests (1)
Transformers\NormalizerTests.cs (1)
1066Assert.True(dimensions1.SequenceEqual(dimensions2));
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\InheritanceMarginTag.cs (1)
70this.MembersOnLine.SequenceEqual(other.MembersOnLine);
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EquatableArray`1.cs (1)
33return Values.SequenceEqual(other.Values);