Base:
method
Equals
System.ValueType.Equals(System.Object)
81 references to Equals
Client.ClientBase.IntegrationTests (4)
MessageInspectorTests.4.4.0.cs (4)
49Assert.True(returnedErrorCode.Equals(TestTypes.ErrorCode.UserNotAuthenticated), String.Format("Expected Error Code: {0}/nActual Error Code: {1}", TestTypes.ErrorCode.UserNotAuthenticated, returnedErrorCode)); 50Assert.True(result1.HttpStatusCode.Equals(System.Net.HttpStatusCode.Unauthorized), String.Format("Expected HttpStatusCode: {0}/nActual HttpStatusCode: {1}", System.Net.HttpStatusCode.Unauthorized, result2.HttpStatusCode)); 56Assert.True(returnedErrorCode.Equals(TestTypes.ErrorCode.Ok), String.Format("Expected Error Code: {0}/nActual Error Code: {1}", TestTypes.ErrorCode.Ok, returnedErrorCode)); 57Assert.True(result2.HttpStatusCode.Equals(System.Net.HttpStatusCode.OK), String.Format("Expected HttpStatusCode: {0}/nActual HttpStatusCode: {1}", System.Net.HttpStatusCode.OK, result2.HttpStatusCode));
datacollector (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
157&& new PlatformEnvironment().OperatingSystem.Equals(PlatformOperatingSystem.Windows))
datacollector.arm64 (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
157&& new PlatformEnvironment().OperatingSystem.Equals(PlatformOperatingSystem.Windows))
dotnet (16)
Commands\Sdk\Check\BundleOutputWriter.cs (1)
27?.SupportPhase.Equals(SupportPhase.Maintenance);
Commands\Workload\Install\FileBasedInstaller.cs (2)
910private static bool IsSingleFilePack(PackInfo packInfo) => packInfo.Kind.Equals(WorkloadPackKind.Library) || packInfo.Kind.Equals(WorkloadPackKind.Template);
Extensions\CommonOptionsExtensions.cs (10)
48return verbosity.Equals(VerbosityOptions.diag) || 49verbosity.Equals(VerbosityOptions.diagnostic) || 50verbosity.Equals(VerbosityOptions.d) || 51verbosity.Equals(VerbosityOptions.detailed); 56return verbosity.Equals(VerbosityOptions.q) || 57verbosity.Equals(VerbosityOptions.quiet); 61return verbosity.Equals(VerbosityOptions.m) || 62verbosity.Equals(VerbosityOptions.minimal); 66return verbosity.Equals(VerbosityOptions.normal) || 67verbosity.Equals(VerbosityOptions.n);
ShellShim\ShellShimTemplateFinder.cs (1)
33&& !arch.Equals(Architecture.X64))
Telemetry\AllowListToSendFirstArgument.cs (1)
29.Where(t => t.Type.Equals(TokenType.Argument)).FirstOrDefault()?.Value ?? null;
Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
26var firstArgument = parseResult.Tokens.FirstOrDefault(t => t.Type.Equals(TokenType.Argument))?.Value ?? "";
dotnet-aot (3)
src\sdk\src\Cli\dotnet\Commands\Sdk\Check\BundleOutputWriter.cs (1)
27?.SupportPhase.Equals(SupportPhase.Maintenance);
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstArgument.cs (1)
29.Where(t => t.Type.Equals(TokenType.Argument)).FirstOrDefault()?.Value ?? null;
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
26var firstArgument = parseResult.Tokens.FirstOrDefault(t => t.Type.Equals(TokenType.Argument))?.Value ?? "";
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Helpers\AddOpenApiInvocationComparer.cs (1)
22return x.Variant.Equals(y.Variant);
Microsoft.AspNetCore.Routing (1)
RouteConstraintMatcher.cs (1)
71if (routeDirection.Equals(RouteDirection.IncomingRequest))
Microsoft.Build (1)
BuildCheck\API\CheckConfiguration.cs (1)
56return !Severity.Value.Equals(CheckResultSeverity.None);
Microsoft.CodeAnalysis.CSharp (2)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
616method.RefKind.Equals(other.RefKind) && 734property.RefKind.Equals(other.RefKind) &&
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
1162if (namingRules.Any(static (rule, arg) => rule.NamingStyle.CapitalizationScheme.Equals(Capitalization.CamelCase) && rule.SymbolSpecification.AppliesTo(arg.localFunctionKind, arg.self.CreateMethodModifiers().Modifiers, null), (self: this, localFunctionKind)))
Microsoft.CodeAnalysis.Features (1)
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
279GetNearestParentJumpStatementKind(ifNode).Equals(syntaxKinds.Convert<TSyntaxKind>(ifBodySingleExitPointOpt.RawKind)))
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Performance\UseStringContainsCharOverloadWithSingleCharactersAnalyzer.cs (2)
79&& invokedMethod.ContainingType.SpecialType.Equals(SpecialType.System_String) 82&& invokedMethod.Parameters[0].Type.SpecialType.Equals(SpecialType.System_String);
Microsoft.DotNet.ApiCompatibility (1)
CompatDifference.cs (1)
80Type.Equals(other.Type) &&
Microsoft.DotNet.Build.Tasks.Installers (1)
src\RpmHeader.cs (1)
137|| !indexEntry.Type.Equals(RpmHeaderEntryType.Binary)
Microsoft.Maui.Essentials (2)
Types\DisplayInfo.shared.cs (2)
115 Orientation.Equals(other.Orientation) && 116 Rotation.Equals(other.Rotation);
Microsoft.Maui.Graphics (1)
FontSource.cs (1)
22 && FontStyleType.Equals(other.FontStyleType);
Microsoft.ML.TimeSeries (5)
RootCauseAnalyzer.cs (5)
372if (aggType.Equals(AggregateType.Max) || aggType.Equals(AggregateType.Min)) 388if (aggType.Equals(AggregateType.Max) || aggType.Equals(AggregateType.Min)) 425if (aggType.Equals(AggregateType.Avg))
Microsoft.TestPlatform.CoreUtilities (1)
Helpers\DotnetHostHelper.cs (1)
108if (_environment.OperatingSystem.Equals(PlatformOperatingSystem.Windows))
Microsoft.TestPlatform.CrossPlatEngine (1)
Client\ProxyOperationManager.cs (1)
263|| (new PlatformEnvironment().OperatingSystem.Equals(PlatformOperatingSystem.Windows)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
157&& new PlatformEnvironment().OperatingSystem.Equals(PlatformOperatingSystem.Windows))
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DefaultTestHostManager.cs (1)
211if (!_environment.OperatingSystem.Equals(PlatformOperatingSystem.Windows))
Hosting\DotnetTestHostManager.cs (1)
352&& _platformEnvironment.OperatingSystem.Equals(PlatformOperatingSystem.Windows)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ToolboxItemFilterAttribute.cs (1)
89&& other.FilterType.Equals(FilterType)
System.Speech (2)
AudioFormat\SpeechAudioFormatInfo.cs (1)
113_encodingFormat.Equals(refObj._encodingFormat) &&
Synthesis\TTSEngine\TTSEngineTypes.cs (1)
329return point1.Start.Equals(point2.Start) && point1.Change.Equals(point2.Change) && point1.ChangeType.Equals(point2.ChangeType);
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
237if (patternId.Equals(UIA_PATTERN_ID.UIA_LegacyIAccessiblePatternId))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (2)
261=> patternId.Equals(UIA_PATTERN_ID.UIA_LegacyIAccessiblePatternId) || 262patternId.Equals(UIA_PATTERN_ID.UIA_InvokePatternId);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (1)
109if (LinkBehavior.Equals(value))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
472=> patternId.Equals(UIA_PATTERN_ID.UIA_LegacyIAccessiblePatternId);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
305!refreshAttribute.RefreshProperties.Equals(RefreshProperties.None)) 609bool needsRefresh = wasExpanded || (refresh is not null && !refresh.RefreshProperties.Equals(RefreshProperties.None));
System\Windows\Forms\Dialogs\CommonDialogs\SpecialFolderEnumConverter.cs (1)
30specialFolder.Equals(Environment.SpecialFolder.Personal))
System\Windows\Forms\Input\KeysConverter.cs (2)
263if (keyValue.Equals(keyOnly)) 311if (keyValue.Equals(keyOnly))
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
51if (!_state.Equals(value))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
404if (!docDeclaration.Attributes.Equals(newDecl.Attributes))
testhost (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
157&& new PlatformEnvironment().OperatingSystem.Equals(PlatformOperatingSystem.Windows))
testhost.arm64 (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
157&& new PlatformEnvironment().OperatingSystem.Equals(PlatformOperatingSystem.Windows))
testhost.x86 (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\DebuggerBreakpoint.cs (1)
157&& new PlatformEnvironment().OperatingSystem.Equals(PlatformOperatingSystem.Windows))
vstest.console (7)
CommandLine\AssemblyMetadataProvider.cs (6)
181if (processorArchitecture.Equals(ProcessorArchitecture.Amd64) 182|| processorArchitecture.Equals(ProcessorArchitecture.IA64)) 186else if (processorArchitecture.Equals(ProcessorArchitecture.X86)) 190else if (processorArchitecture.Equals(ProcessorArchitecture.MSIL)) 194else if (processorArchitecture.Equals(ProcessorArchitecture.Arm)) 198else if (processorArchitecture.Equals(ProcessorArchitecture.None))
CommandLine\InferHelper.cs (1)
83if (Architecture.AnyCPU.Equals(detectedArchitecture))
vstest.console.arm64 (7)
src\vstest\src\vstest.console\CommandLine\AssemblyMetadataProvider.cs (6)
181if (processorArchitecture.Equals(ProcessorArchitecture.Amd64) 182|| processorArchitecture.Equals(ProcessorArchitecture.IA64)) 186else if (processorArchitecture.Equals(ProcessorArchitecture.X86)) 190else if (processorArchitecture.Equals(ProcessorArchitecture.MSIL)) 194else if (processorArchitecture.Equals(ProcessorArchitecture.Arm)) 198else if (processorArchitecture.Equals(ProcessorArchitecture.None))
src\vstest\src\vstest.console\CommandLine\InferHelper.cs (1)
83if (Architecture.AnyCPU.Equals(detectedArchitecture))