2431 references to MaxValue
aspire (3)
Aspire.Cli.Tests (3)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (22)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (12)
Aspire.Hosting (3)
Aspire.Hosting.Oracle.Tests (3)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Tests (4)
Aspire.StackExchange.Redis (1)
Contract.Message.IntegrationTests (1)
dotnet (7)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (140)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (3)
44Initialize(type, knownTypes, int.MaxValue, false, false, null, false);
56Initialize(type, dictionary.Add(rootName), dictionary.Add(DataContract.GetNamespace(rootNamespace)), knownTypes, int.MaxValue, false, false, null, false);
67Initialize(type, rootName, rootNamespace, knownTypes, int.MaxValue, false, false, null, false);
FrameworkFork\System.ServiceModel\Internals\TraceCore.Designer.cs (10)
77string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
113string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
136string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
264string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
372string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
395string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
418string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
442string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
466string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
490string serializedException = EtwDiagnosticTrace.ExceptionToTraceString(exception, int.MaxValue);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (6)
36return CreateAddressHeader(value, DataContractSerializerDefaults.CreateSerializer(type, int.MaxValue/*maxItems*/));
48return CreateAddressHeader(name, ns, value, DataContractSerializerDefaults.CreateSerializer(GetObjectType(value), name, ns, int.MaxValue/*maxItems*/));
106return GetValue<T>(DataContractSerializerDefaults.CreateSerializer(typeof(T), this.Name, this.Namespace, int.MaxValue/*maxItems*/));
124XmlBuffer buffer = new XmlBuffer(int.MaxValue);
289: base(name.Value, ns.Value, value, DataContractSerializerDefaults.CreateSerializer(GetObjectType(value), name, ns, int.MaxValue/*maxItems*/))
311_buffer = new XmlBuffer(int.MaxValue);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\MessageLogger.cs (1)
29All = int.MaxValue
Extensibility.MessageEncoder.IntegrationTests (1)
GenerateDocumentationAndConfigFiles (37)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
58var start = int.MaxValue;
ILAssembler (2)
ILCompiler.Compiler (3)
ILCompiler.ReadyToRun (6)
ILCompiler.RyuJit (3)
ILCompiler.TypeSystem (3)
illink (1)
ILLink.RoslynAnalyzer (2)
Microsoft.Analyzers.Local (2)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Components (5)
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (3)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.Routing (3)
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Microsoft.Build (12)
Microsoft.Build.Framework (3)
Microsoft.Build.Tasks.Core (5)
Microsoft.Build.Tasks.Git (7)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.Build.Utilities.Core (1)
Microsoft.CodeAnalysis (158)
InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Operations\OperationNodes.cs (9)
58int.MaxValue when !Children.IsEmpty => (true, 0, Children.Length - 1),
60int.MaxValue or 0 or -1 => (false, -1, 0),
129int.MaxValue when !Children.IsEmpty => (true, 0, Children.Length - 1),
131int.MaxValue or 0 or -1 => (false, -1, 0),
302case int.MaxValue:
380case int.MaxValue:
466case int.MaxValue:
597case int.MaxValue:
618case int.MaxValue:
Microsoft.CodeAnalysis.Analyzers (38)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
58var start = int.MaxValue;
Microsoft.CodeAnalysis.AnalyzerUtilities (32)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
58var start = int.MaxValue;
Microsoft.CodeAnalysis.CodeStyle (34)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
58var start = int.MaxValue;
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.CSharp (37)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (8)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.CodeAnalysis.Features (12)
Microsoft.CodeAnalysis.Razor.Compiler (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (32)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
58var start = int.MaxValue;
Microsoft.CodeAnalysis.Scripting (3)
Microsoft.CodeAnalysis.VisualBasic (8)
Microsoft.CodeAnalysis.Workspaces (40)
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (1)
257? int.MaxValue
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
58var start = int.MaxValue;
Microsoft.CSharp (1)
Microsoft.Data.Analysis (6)
Microsoft.Data.Analysis.Tests (5)
Microsoft.Deployment.DotNet.Releases (2)
Microsoft.Diagnostics.DataContractReader.Contracts (1)
Microsoft.Diagnostics.DataContractReader.Legacy (2)
Microsoft.Diagnostics.NETCore.Client (1)
Microsoft.DiaSymReader (2)
Microsoft.DotNet.Build.Tasks.Packaging (4)
Microsoft.DotNet.Cli.Definitions (2)
Microsoft.DotNet.Cli.Utils (1)
Microsoft.DotNet.TemplateLocator (2)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
467return int.MaxValue;
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation.NLP (1)
Microsoft.Extensions.Caching.Hybrid (4)
Microsoft.Extensions.Caching.Hybrid.Tests (8)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.Telemetry (2)
Microsoft.Gen.Logging.Generated.Tests (7)
Microsoft.Gen.Metrics.Generated.Tests (5)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Maui (1)
Microsoft.Maui.Controls (7)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.ML.AutoML (4)
Microsoft.ML.Core (18)
Microsoft.ML.Core.Tests (1)
Microsoft.ML.Data (31)
DataLoadSave\Text\TextLoaderParser.cs (3)
739minSize = int.MaxValue;
742var impl = new HelperImpl(stats, parent._flags, parent._separators, parent._escapeChar, 0, int.MaxValue);
778var impl = new HelperImpl(stats, parent._flags, parent._separators, parent._escapeChar, parent._inputSize, int.MaxValue);
Microsoft.ML.FastTree (14)
Microsoft.ML.ImageAnalytics (4)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.LightGbm (5)
Microsoft.ML.Mkl.Components (3)
Microsoft.ML.OnnxTransformer (2)
Microsoft.ML.Parquet (1)
Microsoft.ML.Predictor.Tests (2)
TestTransposer.cs (2)
169builder.AddColumn("E", NumberDataViewType.UInt32, GenerateHelper(rowCount, 0.1, rgen, () => (uint)rgen.Next(int.MinValue, int.MaxValue)));
235builder.AddColumn("E", NumberDataViewType.UInt32, GenerateHelper(rowCount, 0.1, rgen, () => (uint)rgen.Next(int.MinValue, int.MaxValue)));
Microsoft.ML.StandardTrainers (16)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tests (18)
TextLoaderTests.cs (2)
36string.Format("{0},{1},{2},{3}", sbyte.MaxValue, short.MaxValue, int.MaxValue, long.MaxValue),
56int[] intTargets = new int[] { int.MinValue, int.MaxValue, default };
Transformers\HashTests.cs (3)
243HashTestCore((uint)value, new KeyDataViewType(typeof(uint), int.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
251if (value <= int.MaxValue)
269HashTestCore(value, new KeyDataViewType(typeof(ulong), int.MaxValue - 1), eKey, eoKey, e3Key, ecKey, 0);
Microsoft.ML.Tokenizers (54)
Model\EnglishRobertaTokenizer.cs (3)
410private EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, int maxTokenCount = int.MaxValue)
495private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
989var (first, second) = pairs.ArgMin(pair => _mergeRanks.GetOrAdd(pair, int.MaxValue));
Model\SentencePieceBpeModel.cs (8)
282out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
311out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
357private int EncodeToIdsWithAddedToken(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, IList<int> accumulatedIds, out int charsConsumed, int maxTokens = int.MaxValue)
419private int EncodeToIds(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, IList<int> accumulatedIds, out int charsConsumed, int maxTokens = int.MaxValue)
602int maxTokenCount = int.MaxValue)
635private int CountTokensWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int charsConsumed, int maxTokens = int.MaxValue)
693private int CountTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int charsConsumed, int maxTokens = int.MaxValue)
962private int CountTokensFromEnd(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int textIndex, int maxTokens = int.MaxValue)
Model\SentencePieceTokenizer.cs (4)
247=> _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out _, out _, int.MaxValue);
259=> _model.CountTokens(null, text, addBeginningOfSentence, addEndOfSentence, considerNormalization, out _, out _, int.MaxValue);
273public int CountTokens(string text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
288public int CountTokens(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
Model\TiktokenTokenizer.cs (4)
418private int EncodeToIds(ReadOnlySpan<char> text, IList<int> accumulatedIds, out int charsConsumed, int maxTokenCount = int.MaxValue)
531private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
584private int CountTokens(ReadOnlySpan<char> text, out int charsConsumed, int maxTokens = int.MaxValue)
710private int CountTokensFromEnd(ReadOnlySpan<char> text, out int textIndex, int maxTokens = int.MaxValue)
Microsoft.ML.Transforms (19)
Microsoft.NET.Build.Tasks (3)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
467return int.MaxValue;
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.NET.Sdk.WorkloadManifestReader (2)
Microsoft.NET.StringTools (1)
Microsoft.Private.Windows.Core (1)
Microsoft.SourceLink.AzureDevOpsServer.Git (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.SourceLink.AzureRepos.Git (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.SourceLink.Bitbucket.Git (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.SourceLink.Common (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.SourceLink.Gitea (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.SourceLink.Gitee (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.SourceLink.GitHub (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.SourceLink.GitLab (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.SourceLink.GitWeb (6)
src\sourcelink\src\Common\Utilities\Hash.cs (6)
44internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
70internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
89internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
113internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
139internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
164internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
Microsoft.TemplateEngine.Cli (2)
Microsoft.TemplateEngine.Core (4)
Microsoft.TestPlatform.CommunicationUtilities (1)
Microsoft.TestPlatform.CrossPlatEngine (2)
Microsoft.VisualBasic.Core (10)
Microsoft.VisualBasic.Forms (1)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
Microsoft.Win32.Registry (1)
Mono.Cecil.Rocks (1)
MSBuild (2)
NuGet.DependencyResolver.Core (13)
Remote\RemoteDependencyWalker.cs (13)
528return new NuGetVersion(int.MaxValue, int.MaxValue, int.MaxValue);
532return new NuGetVersion(versionRange.MinVersion.Major, int.MaxValue, int.MaxValue, int.MaxValue);
536return new NuGetVersion(versionRange.MinVersion.Major, versionRange.MinVersion.Minor, int.MaxValue, int.MaxValue);
544int.MaxValue);
548return new NuGetVersion(int.MaxValue, int.MaxValue, int.MaxValue, int.MaxValue);
NuGet.Frameworks (3)
NuGet.Protocol (2)
NuGet.Versioning (1)
PresentationBuildTasks (3)
PresentationCore (43)
System\Windows\Input\Stylus\Common\StylusPointPropertyInfoDefaults.cs (11)
14Int32.MaxValue,
24Int32.MaxValue,
34Int32.MaxValue,
44Int32.MaxValue,
54Int32.MaxValue,
74Int32.MaxValue,
85Int32.MaxValue,
175Int32.MaxValue,
185Int32.MaxValue,
195Int32.MaxValue,
235Int32.MaxValue,
PresentationFramework (69)
ReachFramework (7)
Roslyn.Diagnostics.Analyzers (37)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (6)
51internal static int CombineValues<T>(IEnumerable<T>? values, int maxItemsToHash = int.MaxValue)
77internal static int CombineValues<TKey, TValue>(ImmutableDictionary<TKey, TValue> values, int maxItemsToHash = int.MaxValue)
96internal static int CombineValues<T>(T[]? values, int maxItemsToHash = int.MaxValue)
120internal static int CombineValues<T>(ImmutableArray<T> values, int maxItemsToHash = int.MaxValue)
146internal static int CombineValues(IEnumerable<string?>? values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
171internal static int CombineValues(ImmutableArray<string> values, StringComparer stringComparer, int maxItemsToHash = int.MaxValue)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
58var start = int.MaxValue;
Roslyn.Diagnostics.CSharp.Analyzers (1)
Shared.Tests (5)
System.Collections (2)
System.Collections.Concurrent (12)
System.Collections.Immutable (4)
System.CommandLine (4)
System.ComponentModel.TypeConverter (3)
System.Configuration.ConfigurationManager (5)
System.Console (1)
System.Data.Common (13)
System.Data.Odbc (2)
System.Data.OleDb (7)
System.Diagnostics.PerformanceCounter (3)
System.Diagnostics.Process (7)
System.DirectoryServices (4)
System.DirectoryServices.Protocols (5)
System.Drawing.Common (2)
System.Formats.Asn1 (6)
System.Formats.Cbor (1)
System.IO.Compression (2)
System.IO.Compression.Brotli (3)
System.IO.FileSystem.Watcher (1)
System.IO.Pipelines (2)
System.IO.Pipes (3)
System.IO.Ports (1)
System.Linq (13)
System\Linq\Select.SpeedOpt.cs (4)
196return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue);
261Debug.Assert(uint.CreateTruncating(end - start) <= (uint)int.MaxValue);
449return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue);
567return new IListSkipTakeSelectIterator<TSource, TResult>(_source, _selector, count, int.MaxValue);
System.Linq.AsyncEnumerable (8)
System.Linq.Expressions (6)
System.Linq.Parallel (15)
System.Memory (8)
System.Memory.Data (3)
System.Net.Http (26)
System.Net.Http.Json (1)
System.Net.Http.WinHttpHandler (2)
System.Net.Ping (3)
System.Net.Primitives (4)
System.Net.Quic (2)
System.Net.Requests (1)
System.Net.Security (3)
System.Net.Sockets (6)
System.Net.WebClient (2)
System.Net.WebSockets (1)
System.Numerics.Tensors (6)
System.ObjectModel (1)
System.Private.CoreLib (193)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.OSVersion.Unix.cs (1)
53return int.MaxValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (12)
235if (totalLength > int.MaxValue)
273if (totalLength > int.MaxValue)
418if (totalLengthLong > int.MaxValue)
1043if (totalSeparatorsLength > int.MaxValue)
1414if (dstLength > int.MaxValue)
1659return SplitInternal(new ReadOnlySpan<char>(in separator), int.MaxValue, options);
1675return Split(separator, int.MaxValue, options);
1717return SplitInternal(separator, int.MaxValue, StringSplitOptions.None);
1727return SplitInternal(separator, int.MaxValue, StringSplitOptions.None);
1748return SplitInternal(separator, int.MaxValue, options);
1800return SplitInternal(separator ?? Empty, null, int.MaxValue, options);
1810return SplitInternal(null, separator, int.MaxValue, options);
System\CrashInfo.cs (6)
81if (!WriteExceptionWithFallback(key, exception, int.MaxValue, 500, int.MaxValue))
84if (!WriteExceptionWithFallback(key, exception, int.MaxValue, 10, int.MaxValue))
87WriteExceptionWithFallback(key, exception, int.MaxValue, 10, 100);
274private bool WriteStringValue(ReadOnlySpan<byte> key, string value, int maxChars = int.MaxValue, bool truncateLeft = false)
System.Private.DataContractSerialization (49)
System\Runtime\Serialization\DataContractSerializer.cs (3)
72: this(type, knownTypes, int.MaxValue, false, false)
90Initialize(type, dictionary.Add(rootName), dictionary.Add(DataContract.GetNamespace(rootNamespace)), knownTypes, int.MaxValue, ignoreExtensionDataObject, preserveObjectReferences, null, false);
100Initialize(type, rootName, rootNamespace, knownTypes, int.MaxValue, false, false, null, false);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (2)
63: this(type, null, knownTypes, int.MaxValue, false, false)
77: this(type, rootName, knownTypes, int.MaxValue, false, false)
System\Xml\XmlDictionaryReader.cs (2)
138return CreateMtomReader(stream, encodings, contentType, quotas, int.MaxValue, null);
161return CreateMtomReader(buffer, offset, count, encodings, contentType, quotas, int.MaxValue, null);
System.Private.Reflection.Execution (2)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (34)
System.Reflection.Metadata (7)
System.Reflection.MetadataLoadContext (1)
System.Resources.Extensions (4)
System.Resources.Writer (2)
System.Runtime.Caching (9)
System.Runtime.InteropServices (1)
System.Runtime.Numerics (21)
System.Runtime.Serialization.Formatters (5)
System.Runtime.Serialization.Schema (2)
System.Security.Cryptography (22)
System.Security.Cryptography.Cose (1)
System.ServiceModel.Federation (2)
System.ServiceModel.Http (6)
System.ServiceModel.Http.Tests (6)
System.ServiceModel.NetFramingBase (11)
System.ServiceModel.NetTcp.Tests (1)
System.ServiceModel.Primitives (86)
Internals\System\Xml\XmlMtomReader.cs (2)
38return Create(stream, encodings, contentType, quotas, int.MaxValue, null);
64return Create(buffer, offset, count, encodings, contentType, quotas, int.MaxValue, null);
System\ServiceModel\Channels\AddressHeader.cs (6)
37return CreateAddressHeader(value, DataContractSerializerDefaults.CreateSerializer(type, int.MaxValue/*maxItems*/));
52return CreateAddressHeader(name, ns, value, DataContractSerializerDefaults.CreateSerializer(GetObjectType(value), name, ns, int.MaxValue/*maxItems*/));
119return GetValue<T>(DataContractSerializerDefaults.CreateSerializer(typeof(T), Name, Namespace, int.MaxValue/*maxItems*/));
144XmlBuffer buffer = new XmlBuffer(int.MaxValue);
323: base(name.Value, ns.Value, value, DataContractSerializerDefaults.CreateSerializer(GetObjectType(value), name, ns, int.MaxValue/*maxItems*/))
344_buffer = new XmlBuffer(int.MaxValue);
System\ServiceModel\Channels\MtomMessageEncoder.cs (4)
93xmlWriter = XmlMtomWriter.Create(stream, _writeEncoding, int.MaxValue, startInfo, boundary, startUri, writeMessageHeaders, false);
101((IXmlMtomWriterInitializer)xmlWriter).SetOutput(stream, _writeEncoding, int.MaxValue, startInfo, boundary, startUri, writeMessageHeaders, false);
501XmlDictionaryReader xmlDictionaryReader = XmlMtomReader.Create(messageData.Array, messageData.Offset, messageData.Count, MtomMessageEncoderFactory.GetSupportedEncodings(), contentType, XmlDictionaryReaderQuotas.Max, int.MaxValue, null);
673internal int _maxSizeInBytes = int.MaxValue;
System.ServiceModel.Primitives.Tests (9)
System.ServiceModel.Syndication (13)
System.ServiceModel.UnixDomainSocket.Tests (1)
System.ServiceProcess.ServiceController (1)
System.Speech (13)
System.Text.Encoding.CodePages (2)
System.Text.Json (155)
System.Text.RegularExpressions (87)
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (4)
139_anyStar = SymbolicRegexNode<TSet>.CreateLoop(this, _anyChar, 0, int.MaxValue, isLazy: false);
140_anyStarLazy = SymbolicRegexNode<TSet>.CreateLoop(this, _anyChar, 0, int.MaxValue, isLazy: true);
208internal SymbolicRegexNode<TSet> CreateLoop(SymbolicRegexNode<TSet> node, bool isLazy, int lower = 0, int upper = int.MaxValue)
223if (!isLazy && lower == 0 && upper == int.MaxValue && node._kind == SymbolicRegexNodeKind.Singleton)
System.Text.RegularExpressions.Generator (60)
RegexGenerator.Emitter.cs (20)
1504Debug.Assert(target.LoopNode.N == int.MaxValue);
3613if (node.N != int.MaxValue)
3827Debug.Assert(node.M < int.MaxValue, $"Unexpected M={node.M}");
4062if (maxIterations != int.MaxValue || iterationMayBeEmpty)
4067if (maxIterations == int.MaxValue)
4272if (node.IsSetFamily && maxIterations == int.MaxValue && node.Str == RegexCharClass.AnyClass)
4287string maxClause = maxIterations != int.MaxValue ? $"{CountIsLessThan(iterationLocal, maxIterations)} && " : "";
4295else if (node.IsSetFamily && maxIterations == int.MaxValue && node.Str == RegexCharClass.AnyClass)
4303else if (maxIterations == int.MaxValue && TryEmitIndexOf(requiredHelpers, node, useLast: false, negate: true, out _, out string? indexOfExpr))
4332if (minIterations != 0 || maxIterations != int.MaxValue)
4343string maxClause = maxIterations != int.MaxValue ? $"{CountIsLessThan(iterationLocal, maxIterations)} && " : "";
4417Debug.Assert(node.M < int.MaxValue, $"Unexpected M={node.M}");
4437Debug.Assert(node.M < int.MaxValue, $"Unexpected M={node.M}");
4563if (maxIterations == int.MaxValue && !iterationMayBeEmpty)
4580else if (minIterations > 0 && maxIterations == int.MaxValue)
4596else if (maxIterations == int.MaxValue)
5836(0, int.MaxValue) => " any number of times",
5837(1, int.MaxValue) => " at least once",
5838(2, int.MaxValue) => " at least twice",
5839(_, int.MaxValue) => $" at least {node.M} times",
System.Threading (13)
System.Threading.Channels (1)
System.Threading.Tasks.Dataflow (8)
System.Threading.Tasks.Parallel (4)
System.Windows.Controls.Ribbon (4)
System.Windows.Forms (52)
System.Windows.Forms.Design (29)
System.Xaml (2)
tlens (1)
WindowsFormsIntegration (10)