4882 references to Array
AndroidAppBuilder (11)
AppleAppBuilder (6)
AssemblyStripper (16)
BasicTestApp (1)
CodeGenerator (3)
Crossgen2Tasks (1)
dotnet-dev-certs (9)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
511Array.Clear(keyBytes, 0, keyBytes.Length);
512Array.Clear(pem, 0, pem.Length);
518Array.Clear(keyBytes, 0, keyBytes.Length);
519Array.Clear(pem, 0, pem.Length);
569Array.Clear(bytes, 0, bytes.Length);
597Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
dotnet-user-jwts (1)
GetDocument.Insider (4)
http2cat (6)
IIS.FunctionalTests (7)
IIS.LongTests (7)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (7)
IIS.NewShim.FunctionalTests (7)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (7)
ILCompiler.DependencyAnalysisFramework (2)
illink (13)
ILLink.CodeFixProvider (1)
ILLink.RoslynAnalyzer (3)
InMemory.FunctionalTests (9)
Http2\Http2WebSocketTests.cs (5)
127await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
218await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
253await SendDataAsync(3, Array.Empty<byte>(), endStream: true);
357await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
652await SendDataAsync(1, Array.Empty<byte>(), endStream: true);
InProcessWebSite (1)
Interop.FunctionalTests (2)
LibraryBuilder (5)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.Authentication.Core (2)
Microsoft.AspNetCore.Authorization (3)
Microsoft.AspNetCore.Authorization.Policy (3)
Microsoft.AspNetCore.Authorization.Test (3)
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components (33)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (12)
108_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
175_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
216_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
227_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
254Array.Copy(other, 0, storage, 0, count);
260_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
406Array.Clear(_arrayStorage, 0, _count);
462Array.Copy(storage, 0, array, arrayIndex, _count);
499Array.Copy(array, index + 1, array, index, _count - index);
530Array.Copy(array, index + 1, array, index, _count - index);
570Array.Copy(array, index + 1, array, index, _count - index);
700Array.Copy(_arrayStorage, 0, array, 0, _count);
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.Endpoints (22)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (15)
159Array.Empty<Type>(),
185Array.Empty<Type>(),
287Array.Empty<Type>(),
297Array.Empty<Type>(),
304Array.Empty<Type>(),
314Array.Empty<Type>(),
361Array.Empty<Expression>()));
379Array.Empty<Type>(),
398Array.Empty<Type>(),
406Array.Empty<Type>(),
461Array.Empty<Expression>()));
483Array.Empty<Type>(),
501Array.Empty<Type>(),
509Array.Empty<Type>(),
552Expression.Not(Expression.Call(readerParam, nameof(FormDataReader.CurrentPrefixExists), Array.Empty<Type>())),
Microsoft.AspNetCore.Components.Endpoints.Tests (28)
RazorComponentEndpointDataSourceTest.cs (16)
46Array.Empty<IComponentRenderMode>(),
74Array.Empty<IComponentRenderMode>(),
103Array.Empty<IComponentRenderMode>(),
138Array.Empty<IComponentRenderMode>(),
139Array.Empty<Type>(),
144Array.Empty<IComponentRenderMode>(),
150Array.Empty<IComponentRenderMode>(),
157Array.Empty<IComponentRenderMode>(),
158Array.Empty<Type>(),
163Array.Empty<IComponentRenderMode>(),
171Array.Empty<Type>()
176Array.Empty<IComponentRenderMode>(),
177Array.Empty<Type>(),
183Array.Empty<IComponentRenderMode>(),
192Array.Empty<Type>()
201Array.Empty<PageComponentBuilder>(),
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Forms.Tests (2)
Microsoft.AspNetCore.Components.Performance (1)
Microsoft.AspNetCore.Components.QuickGrid (3)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.Server.Tests (17)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (9)
65message: new InvocationMessage("xyz", "method", Array.Empty<object>()),
69message: new InvocationMessage("method", Array.Empty<object>()),
81message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }),
89message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }),
147message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>()),
155message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>(), new string[] { "__test_id__" }),
239var expectedMessage = new InvocationMessage("xyz", "method", Array.Empty<object>());
428new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 15),
429new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 17),
Microsoft.AspNetCore.Components.Tests (40)
RendererTest.cs (20)
260[1] = CreateRenderFactory(Array.Empty<int>())
419[1] = CreateRenderFactory(Array.Empty<int>())
463[1] = CreateRenderFactory(Array.Empty<int>())
522[2] = CreateRenderFactory(Array.Empty<int>()),
523[3] = CreateRenderFactory(Array.Empty<int>())
3567[0] = CreateRenderFactory(Array.Empty<int>()),
3600[0] = CreateRenderFactory(Array.Empty<int>()),
3633[0] = CreateRenderFactory(Array.Empty<int>()),
3671[0] = CreateRenderFactory(Array.Empty<int>()),
3753[0] = Array.Empty<NestedAsyncComponent.ExecutionAction>(),
3782[1] = CreateRenderFactory(Array.Empty<int>()),
3783[2] = CreateRenderFactory(Array.Empty<int>()),
3811[0] = Array.Empty<NestedAsyncComponent.ExecutionAction>(),
3838[1] = CreateRenderFactory(Array.Empty<int>()),
3839[2] = CreateRenderFactory(Array.Empty<int>()),
3893[1] = CreateRenderFactory(Array.Empty<int>()),
3949[1] = CreateRenderFactory(Array.Empty<int>()),
4061[0] = CreateRenderFactory(Array.Empty<int>()),
4095[0] = CreateRenderFactory(Array.Empty<int>()),
4137[0] = CreateRenderFactory(Array.Empty<int>()),
Routing\QueryParameterValueSupplierTest.cs (17)
135AssertKeyValuePair<bool[]>("BoolVals", Array.Empty<bool>());
136AssertKeyValuePair<DateTime[]>("DateTimeVals", Array.Empty<DateTime>());
137AssertKeyValuePair<decimal[]>("DecimalVals", Array.Empty<decimal>());
138AssertKeyValuePair<double[]>("DoubleVals", Array.Empty<double>());
139AssertKeyValuePair<float[]>("FloatVals", Array.Empty<float>());
140AssertKeyValuePair<Guid[]>("GuidVals", Array.Empty<Guid>());
141AssertKeyValuePair<int[]>("IntVals", Array.Empty<int>());
142AssertKeyValuePair<long[]>("LongVals", Array.Empty<long>());
143AssertKeyValuePair<bool?[]>("NullableBoolVals", Array.Empty<bool?>());
144AssertKeyValuePair<DateTime?[]>("NullableDateTimeVals", Array.Empty<DateTime?>());
145AssertKeyValuePair<decimal?[]>("NullableDecimalVals", Array.Empty<decimal?>());
146AssertKeyValuePair<double?[]>("NullableDoubleVals", Array.Empty<double?>());
147AssertKeyValuePair<float?[]>("NullableFloatVals", Array.Empty<float?>());
148AssertKeyValuePair<Guid?[]>("NullableGuidVals", Array.Empty<Guid?>());
149AssertKeyValuePair<int?[]>("NullableIntVals", Array.Empty<int?>());
150AssertKeyValuePair<long?[]>("NullableLongVals", Array.Empty<long?>());
151AssertKeyValuePair<string[]>("StringVals", Array.Empty<string>());
Microsoft.AspNetCore.Components.Web (9)
Microsoft.AspNetCore.Components.Web.Tests (5)
Microsoft.AspNetCore.Components.WebAssembly (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebView (8)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
Microsoft.AspNetCore.DataProtection (22)
Managed\ManagedAuthenticatedEncryptor.cs (9)
72var EMPTY_ARRAY = Array.Empty<byte>();
261Array.Clear(decryptedKdk, 0, decryptedKdk.Length);
262Array.Clear(decryptionSubkey, 0, decryptionSubkey.Length);
263Array.Clear(validationSubkey, 0, validationSubkey.Length);
264Array.Clear(derivedKeysBuffer, 0, derivedKeysBuffer.Length);
361Array.Clear(decryptedKdk, 0, decryptedKdk.Length);
362Array.Clear(encryptionSubkey, 0, encryptionSubkey.Length);
363Array.Clear(validationSubkey, 0, validationSubkey.Length);
364Array.Clear(derivedKeysBuffer, 0, derivedKeysBuffer.Length);
Microsoft.AspNetCore.DataProtection.Abstractions (2)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
511Array.Clear(keyBytes, 0, keyBytes.Length);
512Array.Clear(pem, 0, pem.Length);
518Array.Clear(keyBytes, 0, keyBytes.Length);
519Array.Clear(pem, 0, pem.Length);
569Array.Clear(bytes, 0, bytes.Length);
597Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Microsoft.AspNetCore.Diagnostics.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (1)
Microsoft.AspNetCore.Hosting (6)
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Hosting.WindowsServices (1)
Microsoft.AspNetCore.Http (12)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (7)
74_arrayStorage = Array.Empty<KeyValuePair<TKey, TValue>>();
258Array.Clear(_arrayStorage, 0, _count);
310Array.Copy(storage, 0, array, arrayIndex, _count);
359Array.Copy(array, index + 1, array, index, _count - index);
391Array.Copy(array, index + 1, array, index, _count - index);
432Array.Copy(array, index + 1, array, index, _count - index);
534Array.Copy(_arrayStorage, 0, array, 0, _count);
Microsoft.AspNetCore.Http.Abstractions (21)
Routing\RouteValueDictionary.cs (18)
108_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
154_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
158_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
175_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
192_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
208_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
216_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
227_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
244_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
254Array.Copy(other, 0, storage, 0, count);
260_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
400_arrayStorage = Array.Empty<KeyValuePair<string, object?>>();
406Array.Clear(_arrayStorage, 0, _count);
462Array.Copy(storage, 0, array, arrayIndex, _count);
499Array.Copy(array, index + 1, array, index, _count - index);
530Array.Copy(array, index + 1, array, index, _count - index);
570Array.Copy(array, index + 1, array, index, _count - index);
700Array.Copy(_arrayStorage, 0, array, 0, _count);
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Connections (3)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (7)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.Http.Extensions (38)
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (15)
159Array.Empty<Type>(),
185Array.Empty<Type>(),
287Array.Empty<Type>(),
297Array.Empty<Type>(),
304Array.Empty<Type>(),
314Array.Empty<Type>(),
361Array.Empty<Expression>()));
379Array.Empty<Type>(),
398Array.Empty<Type>(),
406Array.Empty<Type>(),
461Array.Empty<Expression>()));
483Array.Empty<Type>(),
501Array.Empty<Type>(),
509Array.Empty<Type>(),
552Expression.Not(Expression.Call(readerParam, nameof(FormDataReader.CurrentPrefixExists), Array.Empty<Type>())),
src\Shared\PropertyAsParameterInfo.cs (6)
71return Array.Empty<ParameterInfo>();
152Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length);
153Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length);
172Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length);
173Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length);
181_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<CustomAttributeData>());
Microsoft.AspNetCore.Http.Extensions.Tests (6)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.Results (8)
Microsoft.AspNetCore.Http.Results.Tests (2)
Microsoft.AspNetCore.Http.Tests (5)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpLogging.Tests (6)
Microsoft.AspNetCore.HttpOverrides (1)
Microsoft.AspNetCore.Identity (3)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.Mvc.Abstractions (7)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
src\Shared\PropertyAsParameterInfo.cs (6)
71return Array.Empty<ParameterInfo>();
152Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length);
153Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length);
172Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length);
173Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length);
181_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<CustomAttributeData>());
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (22)
Microsoft.AspNetCore.Mvc.Core (43)
Microsoft.AspNetCore.Mvc.Core.Test (124)
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (26)
18var controllerModel = new ControllerModel(controllerType.GetTypeInfo(), Array.Empty<object>());
21var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>());
25Array.Empty<object>());
47var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>())
51new ActionModel(actionMethod1, Array.Empty<object>()),
57var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>())
61new ActionModel(actionMethod2, Array.Empty<object>()),
92Array.Empty<object>());
95var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>())
99new PropertyModel(property1, Array.Empty<object>()),
103new ActionModel(actionMethod1, Array.Empty<object>())
115var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>())
119new PropertyModel(property2, Array.Empty<object>()),
153app.Controllers.Add(new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>()));
154app.Controllers.Add(new ControllerModel(typeof(WorldController).GetTypeInfo(), Array.Empty<object>()));
194new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>())
231var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
236new ActionModel(controllerType.GetMethod(nameof(HelloController.GetHello)), Array.Empty<object>())
256var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
261new PropertyModel(controllerType.GetProperty(nameof(HelloController.Property1)), Array.Empty<object>())
282var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
305var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
310var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>())
317Array.Empty<object>())
338var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
343var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>())
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (6)
278new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
301new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
324new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
347new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
370new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
394new ModelAttributes(Array.Empty<object>(), null, parameterAttributes));
ModelBinding\Metadata\DefaultModelMetadataTest.cs (9)
126var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null);
163var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null);
200var attributes = new ModelAttributes(Array.Empty<object>(), Array.Empty<object>(), null);
358var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
381var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
402var cache = new DefaultMetadataDetails(key, new ModelAttributes(Array.Empty<object>(), null, null));
Routing\ActionEndpointFactoryTest.cs (19)
277Array.Empty<ConventionalRouteEntry>(),
278conventions: Array.Empty<Action<EndpointBuilder>>(),
279groupConventions: Array.Empty<Action<EndpointBuilder>>(),
280finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
281groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
370var endpoints = CreateConventionalRoutedEndpoints(action, Array.Empty<ConventionalRouteEntry>(), createInertEndpoints: true);
383Array.Empty<ConventionalRouteEntry>(),
384conventions: Array.Empty<Action<EndpointBuilder>>(),
385groupConventions: Array.Empty<Action<EndpointBuilder>>(),
386finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
387groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
407conventions: Array.Empty<Action<EndpointBuilder>>(),
408groupConventions: Array.Empty<Action<EndpointBuilder>>(),
409finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
410groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
433conventions: Array.Empty<Action<EndpointBuilder>>(),
434groupConventions: Array.Empty<Action<EndpointBuilder>>(),
435finallyConventions: Array.Empty<Action<EndpointBuilder>>(),
436groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (8)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
Microsoft.AspNetCore.Mvc.Localization (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (8)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
Microsoft.AspNetCore.Mvc.Razor.Test (3)
Microsoft.AspNetCore.Mvc.RazorPages (11)
Microsoft.AspNetCore.Mvc.RazorPages.Test (64)
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (19)
18var model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
82var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
109var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
110var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
137var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
168var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
169var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
199var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
200var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
201var parameterModel = new PageParameterModel(parameterInfo, Array.Empty<object>());
230var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
231var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
266var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
267var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
268var parameterModel = new PageParameterModel(parameterInfo, Array.Empty<object>());
299var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
300var handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
301var propertyModel = new PagePropertyModel(propertyInfo, Array.Empty<object>());
329var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Infrastructure\DefaultPageLoaderTest.cs (7)
25var actionDescriptors = new ActionDescriptorCollection(Array.Empty<ActionDescriptor>(), 1);
44var pageApplicationModel1 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
45var pageApplicationModel2 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
125var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
173c.PageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
242var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
308c.PageApplicationModel = new PageApplicationModel(c.ActionDescriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
Microsoft.AspNetCore.Mvc.Testing (5)
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (7)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
Microsoft.AspNetCore.OpenApi (9)
src\Shared\PropertyAsParameterInfo.cs (6)
71return Array.Empty<ParameterInfo>();
152Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length);
153Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length);
172Array.Copy(constructorAttributes, mergedAttributes, constructorAttributes.Length);
173Array.Copy(propertyAttributes, 0, mergedAttributes, constructorAttributes.Length, propertyAttributes.Length);
181_constructionParameterInfo?.GetCustomAttributesData() ?? Array.Empty<CustomAttributeData>());
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OpenApi.Tests (3)
Microsoft.AspNetCore.OutputCaching (10)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
Microsoft.AspNetCore.OutputCaching.Tests (2)
Microsoft.AspNetCore.RateLimiting.Tests (1)
Microsoft.AspNetCore.Razor (1)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.RequestDecompression.Tests (5)
Microsoft.AspNetCore.ResponseCaching (5)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Routing (49)
Matching\DfaMatcherBuilder.cs (10)
574Array.Empty<Candidate>(),
575Array.Empty<IEndpointSelectorPolicy>(),
669endpointSelectorPolicies?.ToArray() ?? Array.Empty<IEndpointSelectorPolicy>(),
709return Array.Empty<Candidate>();
840Array.Empty<KeyValuePair<string, object>>(),
841Array.Empty<(string parameterName, int segmentIndex, int slotIndex)>(),
843Array.Empty<(RoutePatternPathSegment pathSegment, int segmentIndex)>(),
844Array.Empty<KeyValuePair<string, IRouteConstraint>>());
911if (!nodeBuilder.AppliesToEndpoints(parent.Matches ?? (IReadOnlyList<Endpoint>)Array.Empty<Endpoint>()))
921var edges = nodeBuilder.GetEdges(parent.Matches ?? (IReadOnlyList<Endpoint>)Array.Empty<Endpoint>());
Microsoft.AspNetCore.Routing.FunctionalTests (1)
Microsoft.AspNetCore.Routing.Microbenchmarks (6)
Microsoft.AspNetCore.Routing.Tests (58)
Matching\AcceptsMatcherPolicyTest.cs (10)
35CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
53CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
72CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
106CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
124CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
143CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
165CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
340CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
409CreateEndpoint("/", new AcceptsMetadata(Array.Empty<string>())),
616$"test: {template} - {string.Join(", ", consumesMetadata?.ContentTypes ?? Array.Empty<string>())}");
Matching\HostMatcherPolicyTest.cs (8)
32CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
50CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
69CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
124CreateEndpoint("/", new HostAttribute(Array.Empty<string>()), new DynamicEndpointMetadata()),
142CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
161CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
202CreateEndpoint("/", new HostAttribute(Array.Empty<string>())),
276$"test: {template} - {string.Join(", ", hostMetadata?.Hosts ?? Array.Empty<string>())}");
Matching\HttpMethodMatcherPolicyTest.cs (10)
33CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
51CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
70CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
104CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
122CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>()), new DynamicEndpointMetadata()),
141CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
185CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
188CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
230CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>())),
233CreateEndpoint("/", new HttpMethodMetadata(Array.Empty<string>(), acceptCorsPreflight: true)),
Microsoft.AspNetCore.Security.Microbenchmarks (2)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (7)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (6)
Microsoft.AspNetCore.Server.Kestrel.Core (17)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
511Array.Clear(keyBytes, 0, keyBytes.Length);
512Array.Clear(pem, 0, pem.Length);
518Array.Clear(keyBytes, 0, keyBytes.Length);
519Array.Clear(pem, 0, pem.Length);
569Array.Clear(bytes, 0, bytes.Length);
597Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (26)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Session (2)
Microsoft.AspNetCore.Shared.Tests (21)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (7)
74_arrayStorage = Array.Empty<KeyValuePair<TKey, TValue>>();
258Array.Clear(_arrayStorage, 0, _count);
310Array.Copy(storage, 0, array, arrayIndex, _count);
359Array.Copy(array, index + 1, array, index, _count - index);
391Array.Copy(array, index + 1, array, index, _count - index);
432Array.Copy(array, index + 1, array, index, _count - index);
534Array.Copy(_arrayStorage, 0, array, 0, _count);
Microsoft.AspNetCore.SignalR.Client (1)
Microsoft.AspNetCore.SignalR.Client.Core (8)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (25)
HubConnectionTests.cs (7)
865_ = await hubConnection.StreamAsChannelCoreAsync("stream", typeof(int), Array.Empty<object>(), default);
866_ = await hubConnection.InvokeCoreAsync("test", typeof(int), Array.Empty<object>(), default);
867await hubConnection.SendCoreAsync("test2", Array.Empty<object>(), default);
868_ = hubConnection.StreamAsyncCore<int>("stream2", Array.Empty<object>(), default);
875mockConnection.Verify(c => c.InvokeCoreAsync("test", typeof(int), Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once);
876mockConnection.Verify(c => c.SendCoreAsync("test2", Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once);
877mockConnection.Verify(c => c.StreamAsyncCore<int>("stream2", Array.Empty<object>(), It.IsAny<CancellationToken>()), Times.Once);
Microsoft.AspNetCore.SignalR.Common (3)
Microsoft.AspNetCore.SignalR.Common.Tests (27)
Internal\Protocol\JsonHubProtocolTestsBase.cs (8)
35new JsonProtocolTestData("InvocationMessage_HasStreamArgument", new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }), true, true, "{\"type\":1,\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\"]}"),
37new JsonProtocolTestData("InvocationMessage_HasMultipleStreams", new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }), true, true, "{\"type\":1,\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\",\"__test_id2__\"]}"),
78new JsonProtocolTestData("StreamInvocationMessage_HasStreamArgument", new StreamInvocationMessage("123", "Target", Array.Empty<object>(), new string[] { "__test_id__" }), true, true, "{\"type\":4,\"invocationId\":\"123\",\"target\":\"Target\",\"arguments\":[],\"streamIds\":[\"__test_id__\"]}"),
194var binder = new TestBinder(Array.Empty<Type>(), typeof(object));
205var binder = new TestBinder(Array.Empty<Type>(), typeof(object));
209Assert.Same(Array.Empty<string>(), (message as InvocationMessage).StreamIds);
376new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 63),
377new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 81),
Internal\Protocol\MessagePackHubProtocolTestBase.cs (9)
65message: new InvocationMessage("xyz", "method", Array.Empty<object>()),
69message: new InvocationMessage("method", Array.Empty<object>()),
81message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__" }),
89message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }),
147message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>()),
155message: new StreamInvocationMessage("xyz", "method", Array.Empty<object>(), new string[] { "__test_id__" }),
239var expectedMessage = new InvocationMessage("xyz", "method", Array.Empty<object>());
428new MessageSizeTestData("StreamInvocationMessage", new StreamInvocationMessage("1", "target", Array.Empty<object>()), 15),
429new MessageSizeTestData("StreamInvocationMessage_WithStreamId", new StreamInvocationMessage("1", "target", Array.Empty<object>(), new [] { "2" }), 17),
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.SignalR.Core (10)
Microsoft.AspNetCore.SignalR.Microbenchmarks (30)
DefaultHubDispatcherBenchmark.cs (12)
215return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "Invocation", Array.Empty<object>()));
221return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationAsync", Array.Empty<object>()));
227return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationReturnValue", Array.Empty<object>()));
233return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationReturnAsync", Array.Empty<object>()));
239return _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", "InvocationValueTaskAsync", Array.Empty<object>()));
245return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReader", Array.Empty<object>()));
251return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReaderAsync", Array.Empty<object>()));
257return _dispatcher.DispatchMessageAsync(_connectionContext, new StreamInvocationMessage("123", "StreamChannelReaderValueTaskAsync", Array.Empty<object>()));
344await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStream), Array.Empty<object>(), streamIds: new string[] { "1" }));
355await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStreamIAsynEnumerable), Array.Empty<object>(), streamIds: new string[] { "1" }));
366await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStream), Array.Empty<object>(), streamIds: new string[] { "1" }));
380await _dispatcher.DispatchMessageAsync(_connectionContext, new InvocationMessage("123", nameof(TestHub.UploadStreamIAsynEnumerable), Array.Empty<object>(), streamIds: new string[] { "1" }));
DefaultHubLifetimeManagerBenchmark.cs (9)
75return _hubLifetimeManager.SendAllAsync("MethodName", Array.Empty<object>());
81return _hubLifetimeManager.SendGroupAsync(_groupNames[0], "MethodName", Array.Empty<object>());
87return _hubLifetimeManager.SendGroupsAsync(_groupNames, "MethodName", Array.Empty<object>());
93return _hubLifetimeManager.SendGroupExceptAsync(_groupNames[0], "MethodName", Array.Empty<object>(), _subsetConnectionIds);
99return _hubLifetimeManager.SendAllExceptAsync("MethodName", Array.Empty<object>(), _subsetConnectionIds);
105return _hubLifetimeManager.SendConnectionAsync(_connectionIds[0], "MethodName", Array.Empty<object>());
111return _hubLifetimeManager.SendConnectionsAsync(_subsetConnectionIds, "MethodName", Array.Empty<object>());
117return _hubLifetimeManager.SendUserAsync(_userIdentifiers[0], "MethodName", Array.Empty<object>());
123return _hubLifetimeManager.SendUsersAsync(_userIdentifiers, "MethodName", Array.Empty<object>());
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Microsoft.AspNetCore.SignalR.Tests (25)
HubConnectionHandlerTests.cs (22)
2054await client.SendHubMessageAsync(new StreamInvocationMessage(invocationId, nameof(StreamingHub.BlockingStream), Array.Empty<object>()));
3190await client.SendHubMessageAsync(new StreamInvocationMessage("1", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout();
3296await client.SendHubMessageAsync(new StreamInvocationMessage("123", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout();
3298await client.SendHubMessageAsync(new StreamInvocationMessage("123", nameof(StreamingHub.BlockingStream), Array.Empty<object>())).DefaultTimeout();
3602await client.BeginUploadStreamAsync("invocationId", nameof(MethodHub.StreamDontRead), new[] { "id" }, Array.Empty<object>()).DefaultTimeout();
3626await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), new[] { "id" }, Array.Empty<object>());
3649await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadArray), new[] { "id" }, Array.Empty<object>());
3681await client.BeginUploadStreamAsync("invocation_" + id, nameof(MethodHub.StreamingConcat), new[] { id }, Array.Empty<object>());
3741await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadArrayAuth), new[] { "id" }, Array.Empty<object>());
3777await client.BeginUploadStreamAsync("invocation", nameof(LongRunningHub.Upload), new[] { "id" }, Array.Empty<object>());
3873await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, Array.Empty<object>()).DefaultTimeout();
3924await client.BeginUploadStreamAsync("invocationId", nameof(MethodHub.TestTypeCastingErrors), new[] { "channelId" }, Array.Empty<object>()).DefaultTimeout();
4000await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.TestCustomErrorPassing), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4020await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id", "id2" }, args: Array.Empty<object>()).DefaultTimeout();
4039await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: Array.Empty<string>(), args: Array.Empty<object>()).DefaultTimeout();
4062await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4104await client.BeginUploadStreamAsync(invocationId: null, nameof(MethodHub.StreamingConcat), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4137await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadIgnoreItems), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4174await client.SendStreamInvocationAsync(nameof(MethodHub.StreamAndUploadIgnoreItems), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
4421var messagePromise = client.StreamAsync(nameof(StreamingHub.StreamEcho), new[] { streamId }, Array.Empty<object>()).DefaultTimeout();
4574await client.BeginUploadStreamAsync("invocation", nameof(MethodHub.UploadDoesWorkOnComplete), streamIds: new[] { "id" }, args: Array.Empty<object>()).DefaultTimeout();
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.TestHost (5)
Microsoft.AspNetCore.TestHost.Tests (1)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (6)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.AspNetCore.WebUtilities.Tests (6)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
37Array.Copy(data, 0, startSegment, 10, data.Length);
52Array.Copy(data, 0, startSegment, 10, data.Length);
67Array.Copy(data, 0, startSegment, 10, data.Length);
96segments.Add(Array.Empty<byte>());
100segments.Add(Array.Empty<byte>());
Microsoft.Build (95)
BufferedReadStream.cs (4)
72Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount);
83Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, count);
94Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount);
115Array.Copy(_buffer, 0, buffer, offset + alreadyCopied, remainingCopyCount);
Microsoft.Build.CommandLine.UnitTests (45)
XMake_Tests.cs (38)
1595string[] extensionsToIgnore = Array.Empty<string>();
1597MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe(answer, StringCompareShould.IgnoreCase);
1612MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found"
1624MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found"
1636MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found"
1638extensionsToIgnore = Array.Empty<string>();
1639MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found"
1653MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found"
1668MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found"
1682MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase);
1696MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("my.proj", StringCompareShould.IgnoreCase); // "Expected my.proj to be only project found"
1710MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles);
1719MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.nativeproj", StringCompareShould.IgnoreCase); // "Expected test.nativeproj to be only project found"
1724MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.proj", StringCompareShould.IgnoreCase); // "Expected test.proj to be only project found"
1729MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.nativeproj", StringCompareShould.IgnoreCase); // "Expected test.nativeproj to be only project found"
1734MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found"
1737extensionsToIgnore = Array.Empty<string>();
1739MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found"
1742extensionsToIgnore = Array.Empty<string>();
1744MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.proj", StringCompareShould.IgnoreCase); // "Expected test.proj to be only project found"
1747extensionsToIgnore = Array.Empty<string>();
1749MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.proj", StringCompareShould.IgnoreCase); // "Expected test.proj to be only project found"
1752extensionsToIgnore = Array.Empty<string>();
1754MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found"
1757extensionsToIgnore = Array.Empty<string>();
1759MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found"
1762extensionsToIgnore = Array.Empty<string>();
1764MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.sln", StringCompareShould.IgnoreCase); // "Expected test.sln to be only solution found"
1776MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles).ShouldBe("test.proj"); // "Expected test.proj to be only project found"
1790MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles);
1804MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles);
1818MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles);
1832MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles);
1846MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles);
1860MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles);
1871string[] projects = Array.Empty<string>();
1874MSBuildApp.ProcessProjectSwitch(Array.Empty<string>(), extensionsToIgnore, projectHelper.GetFiles);
2767TransientTestProjectWithFiles testProject = _env.CreateTestProjectWithFiles(projectContents, Array.Empty<string>());
Microsoft.Build.Engine (15)
Microsoft.Build.Engine.OM.UnitTests (15)
Construction\ProjectRootElement_Tests.cs (3)
2006object document = typeof(ProjectRootElement).InvokeMember("XmlDocument", bindingFlags, null, project, Array.Empty<object>());
2007object cache = document.GetType().InvokeMember("StringCache", bindingFlags, null, document, Array.Empty<object>());
2008return (int)cache.GetType().InvokeMember("DocumentCount", bindingFlags, null, cache, Array.Empty<object>());
Microsoft.Build.Engine.UnitTests (242)
BackEnd\BuildManager_Tests.cs (36)
204Array.Empty<string>(),
445var data = new BuildRequestData(project.CreateProjectInstance(), Array.Empty<string>(), _projectCollection.HostServices);
652var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
706MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
766MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
817MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
884MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
915MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
1081BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1091GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1101BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1111GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1136var targets = Array.Empty<string>();
1200BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1213GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1229new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1471BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion);
1491BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion);
1521BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion);
1608BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion);
1645BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion);
1676BuildRequestData data = GetBuildRequestData(contents, Array.Empty<string>(), MSBuildDefaultToolsVersion);
1816var data = new BuildRequestData(projectFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
1971var data = new BuildRequestData(projectInstance, Array.Empty<string>());
1998var data2 = new BuildRequestData(projectInstance2, Array.Empty<string>());
2132var data = new BuildRequestData(fileName, _projectCollection.GlobalProperties, MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
2216var data = new BuildRequestData(instance, Array.Empty<string>());
2256var data = new BuildRequestData(instance, Array.Empty<string>(), null, BuildRequestDataFlags.None, new string[] { "VirtualProp" });
2282outerBuildCacheDirectory = BuildAndCheckCache(outerBuildManager, Array.Empty<string>());
3487private BuildRequestData GetBuildRequestData(string projectContents) => GetBuildRequestData(projectContents, Array.Empty<string>());
3492private GraphBuildRequestData GetGraphBuildRequestData(string projectContents) => GetGraphBuildRequestData(projectContents, Array.Empty<string>());
4139var data = new GraphBuildRequestData(graph, Array.Empty<string>());
4184var data = new GraphBuildRequestData(new ProjectGraphEntryPoint(project1), Array.Empty<string>());
4224var data = new GraphBuildRequestData(graph, Array.Empty<string>());
4268var data = new GraphBuildRequestData(new ProjectGraphEntryPoint(project1), Array.Empty<string>());
4287targetsToBuild: Array.Empty<string>(),
BackEnd\BuildRequest_Tests.cs (12)
38CreateNewBuildRequest(0, Array.Empty<string>());
44BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>());
47BuildRequest request2 = CreateNewBuildRequest(1, Array.Empty<string>());
50BuildRequest request3 = CreateNewBuildRequest(-1, Array.Empty<string>());
57BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>());
60BuildRequest request2 = CreateNewBuildRequest(1, Array.Empty<string>());
63BuildRequest request3 = CreateNewBuildRequest(-1, Array.Empty<string>());
70BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>());
83BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>());
90BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>());
101BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
111BuildRequest request = CreateNewBuildRequest(0, Array.Empty<string>());
BackEnd\BuildRequestConfiguration_Tests.cs (37)
44BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
52BuildRequestData config1 = new BuildRequestData("file", null, "toolsVersion", Array.Empty<string>(), null);
58BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
66BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
74BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
81BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
90BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
99BuildRequestData config1 = new BuildRequestData("file", null, "toolsVersion", Array.Empty<string>(), null);
105BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
109BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
113BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
121BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
125BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
129BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
139BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
147BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
157BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
165BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
174BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", props, "toolsVersion", Array.Empty<string>(), null), "2.0");
182BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
195BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
203BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
204BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("File", new Dictionary<string, string>(), "ToolsVersion", Array.Empty<string>(), null), "2.0");
205BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
206BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
207BuildRequestConfiguration config5 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
218BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
220BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
223BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
226BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
231BuildRequestData data = new BuildRequestData("file", props.ToDictionary(), "toolsVersion", Array.Empty<string>(), null);
246BuildRequestData data = new BuildRequestData("file", properties.ToDictionary(), "4.0", Array.Empty<string>(), null);
287BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0");
307BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0");
360BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0");
460BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData(instance, Array.Empty<string>(), null), "2.0");
563var configuration = new BuildRequestConfiguration(new BuildRequestData(projectInstance, Array.Empty<string>()), MSBuildConstants.CurrentToolsVersion);
BackEnd\BuildRequestEngine_Tests.cs (5)
336BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
367BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
395BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
448BuildRequestData data = new BuildRequestData(Path.GetFullPath("TestFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
454BuildRequestData data2 = new BuildRequestData(Path.GetFullPath("OtherFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
BackEnd\BuildRequestEntry_Tests.cs (12)
25BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
26BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null);
47BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
95BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null);
117BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null);
147BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
184BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null);
200BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null);
217BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null);
241BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
261BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
272BuildRequest randomRequest = CreateNewBuildRequest(3, Array.Empty<string>());
BackEnd\BuildResult_Tests.cs (23)
33BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
40BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
72BuildRequest request = CreateNewBuildRequest(-1, Array.Empty<string>());
76BuildRequest request2 = CreateNewBuildRequest(1, Array.Empty<string>());
84BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
96BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
103result.AddResultsForTarget("bar", new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, new Exception())));
106result.AddResultsForTarget("baz", new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult(new Exception())));
109BuildRequest request2 = CreateNewBuildRequest(2, Array.Empty<string>());
119BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
127BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
141BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
152BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
164BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
175BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
186BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
194BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
221BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
234BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
238BuildRequest request2 = CreateNewBuildRequest(2, Array.Empty<string>());
248BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
259BuildRequest request = CreateNewBuildRequest(1, Array.Empty<string>());
319result.AddResultsForTarget("omega", new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult(new ArgumentException("The argument was invalid"))));
BackEnd\ConfigurationMetadata_Tests.cs (5)
62BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
88BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
104BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
113data = new BuildRequestData("file2", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
118data = new BuildRequestData("file", new Dictionary<string, string>(), "3.0", Array.Empty<string>(), null);
BackEnd\FullyQualifiedBuildRequest_Tests.cs (6)
19BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
22request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(data1, "2.0"), Array.Empty<string>(), true);
24BuildRequestData data3 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
25request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(data1, "2.0"), Array.Empty<string>(), false);
42FullyQualifiedBuildRequest request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null), "2.0"), null, true);
48BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
BackEnd\IntrinsicTask_Tests.cs (2)
3868BuildRequestEntry entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
3903var entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\LoggingServicesLogMethod_Tests.cs (5)
839BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
865BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
904BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
945BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
1416BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
BackEnd\RequestBuilder_Tests.cs (3)
226BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("testName", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
271Array.Empty<string>(),
323return new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null));
BackEnd\Scheduler_Tests.cs (29)
75_defaultParentRequest = CreateBuildRequest(99, 99, Array.Empty<string>(), null);
79_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest }));
110BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
128BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
152BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
175BuildRequestBlocker blocker = new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { request });
206BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
226BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
249BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
277BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
301BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
328BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
354BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
391_defaultParentRequest = CreateBuildRequest(99, 99, Array.Empty<string>(), null);
398List<ScheduleResponse> response = new List<ScheduleResponse>(_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest, request1, request2, request3 })));
432BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
462BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
492BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3, request4 });
525BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
549BuildRequestBlocker blocker = new BuildRequestBlocker(-1, Array.Empty<string>(), new[] { request1 });
583_defaultParentRequest = CreateBuildRequest(99, 99, Array.Empty<string>(), null);
592List<ScheduleResponse> responses = new List<ScheduleResponse>(_scheduler.ReportRequestBlocked(1, new BuildRequestBlocker(-1, Array.Empty<string>(), new BuildRequest[] { _defaultParentRequest, request1, request2, request3 })));
627BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
646BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2 });
666BuildRequestBlocker blocker = new BuildRequestBlocker(request1.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request1, request2, request3 });
682BuildRequestBlocker blocker = new BuildRequestBlocker(request.ParentGlobalRequestId, Array.Empty<string>(), new BuildRequest[] { request });
733BuildRequestData data = new(projectFullPath, new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null);
776result.AddResultsForTarget(target, new TargetResult(Array.Empty<TaskItem>(), workUnitResult));
785return CreateBuildRequest(nodeRequestId, configId, Array.Empty<string>());
BackEnd\TargetEntry_Tests.cs (6)
83BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
98BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
112BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
876Array.Empty<string>(),
1023BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
1041BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
BuildEventArgsSerialization_Tests.cs (8)
267e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
309e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
341e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
382e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
416e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
459e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
491e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
621e => string.Join(", ", e.RawArguments ?? Array.Empty<object>()));
Graph\ProjectGraph_Tests.cs (8)
950CreateProjectFile(env: env, projectNumber: 3, projectReferences: Array.Empty<int>(), projectReferenceTargets: projectReferenceTargets);
981CreateProjectFile(env: env, projectNumber: 6, projectReferences: Array.Empty<int>(), projectReferenceTargets: projectReferenceTargets);
2276Array.Empty<int>(),
2409{4, Array.Empty<int>() }
2474{6, Array.Empty<int>() },
2696IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>());
2738IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>());
2797IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>());
Microsoft.Build.Framework (28)
SegmentedArray.cs (10)
16/// <seealso cref="Array.Clear(Array, int, int)"/>
25/// <seealso cref="Array.Copy(Array, Array, int)"/>
44public static void Copy<T>(SegmentedArray<T> sourceArray, Array destinationArray, int length)
66Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
130public static void Copy<T>(SegmentedArray<T> sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
161Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
231index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.Build.Tasks.Core (100)
Microsoft.Build.Tasks.UnitTests (50)
Microsoft.Build.UnitTests.Shared (3)
Microsoft.Build.Utilities.Core (26)
Microsoft.Build.Utilities.UnitTests (10)
MuxLogger_Tests.cs (8)
59buildManager.Build(parameters, new BuildRequestData(project, Array.Empty<string>(), null));
98buildManager.Build(parameters, new BuildRequestData(project, Array.Empty<string>(), null));
113BuildSubmission submission = buildManager.PendBuildRequest(new BuildRequestData(project, Array.Empty<string>(), null));
153BuildSubmission submission = buildManager.PendBuildRequest(new BuildRequestData(project, Array.Empty<string>(), null));
206BuildSubmission submission1 = buildManager.PendBuildRequest(new BuildRequestData(project1, Array.Empty<string>(), null));
210BuildSubmission submission2 = buildManager.PendBuildRequest(new BuildRequestData(project2, Array.Empty<string>(), null));
259BuildSubmission submission = buildManager.PendBuildRequest(new BuildRequestData(project, Array.Empty<string>(), null));
310BuildSubmission submission = buildManager.PendBuildRequest(new BuildRequestData(project, Array.Empty<string>(), null));
Microsoft.Cci.Extensions (5)
Microsoft.CSharp (23)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (6)
84public static readonly TypeArray Empty = new TypeArray(Array.Empty<CType>());
102Debug.Assert(Array.TrueForAll(Items, item => item != null));
105public void CopyItems(int i, int c, CType[] dest) => Array.Copy(Items, i, dest, 0, c);
121Array.ConstrainedCopy(types, offset, newTypes, 0, ctype);
158Array.Copy(prgtype1, combined, prgtype1.Length);
159Array.Copy(prgtype2, 0, combined, prgtype1.Length, prgtype2.Length);
Microsoft.DotNet.AsmDiff (2)
Microsoft.DotNet.Build.Tasks.Feed.Tests (6)
Microsoft.DotNet.Build.Tasks.Installers (3)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (8)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.Helix.Client (3)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.RemoteExecutor (6)
Microsoft.DotNet.SharedFramework.Sdk (2)
Microsoft.DotNet.SignTool (2)
Microsoft.DotNet.SignTool.Tests (13)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.DotNet.XliffTasks (1)
Microsoft.DotNet.XUnitAssert.Tests (16)
EqualityAssertsTests.cs (16)
970 var expected = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
972 var actual = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
981 var expected = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
983 var actual = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 0 });
3273 var expected = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
3275 var actual = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
3293 var expected = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 1 });
3295 var actual = Array.CreateInstance(typeof(int), new[] { 1 }, new[] { 0 });
Microsoft.DotNet.XUnitExtensions (5)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.SqlServer (1)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
Microsoft.Extensions.Configuration.Binder (3)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.DependencyInjection (11)
Microsoft.Extensions.DependencyModel (3)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileProviders.Embedded (4)
Microsoft.Extensions.FileProviders.Embedded.Tests (4)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging (2)
Microsoft.Extensions.Logging.Abstractions (3)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.Console (3)
Microsoft.Extensions.Logging.EventSource (2)
Microsoft.Extensions.Logging.Generators (5)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (6)
Microsoft.Interop.JavaScript.JSImportGenerator (8)
JSGeneratorFactory.cs (5)
63return Create(info, isToJs, simple.KnownType, Array.Empty<KnownManagedType>(), jsMarshalingInfo.JSType, Array.Empty<JSTypeFlags>(), fail);
83return Create(info, isToJs, task.KnownType, Array.Empty<KnownManagedType>(), jsMarshalingInfo.JSType, jsMarshalingInfo.JSTypeArguments, fail);
284var gen = Create(info, isToJs ^ (!isReturn), argumentTypes[i], Array.Empty<KnownManagedType>(), jsTypeArguments[i], Array.Empty<JSTypeFlags>(), failWithReason);
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (17)
Microsoft.JSInterop (5)
Microsoft.JSInterop.Tests (9)
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (3)
Microsoft.VisualBasic.Core (37)
MinimalSample (1)
MonoAOTCompiler (6)
MonoTargetsTasks (6)
MSBuild (32)
BufferedReadStream.cs (4)
72Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount);
83Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, count);
94Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount);
115Array.Copy(_buffer, 0, buffer, offset + alreadyCopied, remainingCopyCount);
MSBuildTaskHost (20)
BufferedReadStream.cs (4)
72Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount);
83Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, count);
94Array.Copy(_buffer, _currentIndexInBuffer, buffer, offset, _currentlyBufferedByteCount);
115Array.Copy(_buffer, 0, buffer, offset + alreadyCopied, remainingCopyCount);
mscorlib (1)
Mvc.Api.Analyzers.Test (2)
Mvc.RoutingWebSite (2)
netstandard (1)
PresentationBuildTasks (9)
PresentationCore (190)
MS\Internal\Generated\AvTraceMessages.cs (4)
85_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
109_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
269_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
293_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
MS\Internal\Shaping\OpenTypeLayout.cs (4)
1221Array.Clear(_lookupUsageFlags, 0, requiredLookupUsageArraySize);
1323Array.Copy(_cachePointers, tmp, firstGlyphChanged);
1324Array.Copy(_cachePointers, oldAfterLastGlyphChanged, tmp, afterLastGlyphChanged, oldLength - oldAfterLastGlyphChanged);
1330Array.Copy(_cachePointers, oldAfterLastGlyphChanged, _cachePointers, afterLastGlyphChanged, oldLength - oldAfterLastGlyphChanged);
System\Windows\Input\Stylus\Wisp\PenContexts.cs (5)
128ProcessInput(RawStylusActions.OutOfRange, penContext, tabletDeviceId, stylusPointerId, Array.Empty<int>(), timestamp);
233Array.Copy(_contexts, 0, ctxs, 0, preCopyCount);
236Array.Copy(_contexts, index, ctxs, index+1, postCopyCount);
260Array.Copy(_contexts, 0, ctxs, 0, preCopyCount);
261Array.Copy(_contexts, index+1, ctxs, index, postCopyCount);
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (7)
375Array.Copy(tablets, 0, _tablets, 0, count);
384Array.Copy(tablets, 0, updatedTablets, 0, tabletsIndex);
552Array.Copy(_tablets, 0, newTablets, 0, preCopyCount);
554Array.Copy(_tablets, index, newTablets, index+1, postCopyCount);
573Array.Copy(_tablets, 0, tablets, 0, preCopyCount);
574Array.Copy(_tablets, index+1, tablets, index, postCopyCount);
700TabletDevice[] _tablets = Array.Empty<TabletDevice>();
System\Windows\Media\Imaging\BitmapSource.cs (6)
59System.Array pixels,
359public virtual void CopyPixels(Int32Rect sourceRect, Array pixels, int stride, int offset)
377public virtual void CopyPixels(Array pixels, int stride, int offset)
651unsafe internal void CriticalCopyPixels(Int32Rect sourceRect, Array pixels, int stride, int offset)
1042int i = Array.IndexOf(s_supportedDUCEFormats, format);
1631return (Array.IndexOf(s_supportedDUCEFormats, format) != -1);
System\Windows\Media\Imaging\PropVariant.cs (14)
139internal void InitVector(Array array, Type type, VarEnum varEnum)
144internal void Init(Array array, Type type, VarEnum vt)
253else if (value is Array)
259InitVector(value as Array, typeof(sbyte), VarEnum.VT_I1);
263InitVector(value as Array, typeof(byte), VarEnum.VT_UI1);
285InitVector(value as Array, typeof(short), VarEnum.VT_I2);
289InitVector(value as Array, typeof(ushort), VarEnum.VT_UI2);
293InitVector(value as Array, typeof(int), VarEnum.VT_I4);
297InitVector(value as Array, typeof(uint), VarEnum.VT_UI4);
301InitVector(value as Array, typeof(Int64), VarEnum.VT_I8);
305InitVector(value as Array, typeof(UInt64), VarEnum.VT_UI8);
309InitVector(value as Array, typeof(float), VarEnum.VT_R4);
313InitVector(value as Array, typeof(double), VarEnum.VT_R8);
317InitVector(value as Array, typeof(Guid), VarEnum.VT_CLSID);
PresentationFramework (151)
MS\Internal\Documents\ContentElementCollection.cs (4)
70public void CopyTo(Array array, int index)
86Array.Copy(Items, 0, array, index, Size);
118Array.Copy(Items, 0, array, index, Size);
771Array.Copy(Items, 0, newItems, 0, Size);
MS\Internal\Generated\AvTraceMessages.cs (12)
1349_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
1373_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
1477_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
1501_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
1717_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
1741_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
2013_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
2037_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
2099_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
2123_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
2261_avTrace.Trace( type, traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
2285_avTrace.TraceStartStop( traceDetails.Id, traceDetails.Message, traceDetails.Labels, Array.Empty<object>() );
MS\Internal\UncommonValueTable.cs (4)
52Array.Copy(_table, 0, newTable, 0, index);
53Array.Copy(_table, index, newTable, index+1, n-index);
79Array.Copy(_table, 0, newTable, 0, index);
80Array.Copy(_table, index+1, newTable, index, n-index);
System\Windows\Controls\ColumnDefinition.cs (4)
86void ICollection.CopyTo(Array array, int index)
105Array.Copy(_items, 0, array, index, _size);
127Array.Copy(_items, 0, array, index, _size);
719Array.Copy(_items, 0, newItems, 0, _size);
System\Windows\Controls\Grid.cs (10)
396Array.Clear(_definitionIndices, 0, _definitionIndices.Length);
404Array.Clear(_roundingErrors, 0, _roundingErrors.Length);
2174Array.Sort(definitionIndices, 0, starDefinitionsCount, new StarDistributionOrderIndexComparer(definitions));
2221Array.Sort(definitionIndices, 0, definitions.Length, new DistributionOrderIndexComparer(definitions));
2259Array.Sort(definitionIndices, 0, definitions.Length, new RoundingErrorIndexComparer(roundingErrors));
2454Array.Sort(definitionIndices, 0, minCount, new MinRatioIndexComparer(definitions));
2455Array.Sort(definitionIndices, defCount, maxCount, new MaxRatioIndexComparer(definitions));
2628Array.Sort(definitionIndices, 0, starCount, new StarWeightIndexComparer(definitions));
2728Array.Sort(definitionIndices, 0, definitions.Length, new RoundingErrorIndexComparer(roundingErrors));
2878Array.Clear(extData.TempDefinitions, 0, Math.Max(DefinitionsU.Length, DefinitionsV.Length));
System\Windows\Controls\RowDefinition.cs (4)
86void ICollection.CopyTo(Array array, int index)
105Array.Copy(_items, 0, array, index, _size);
127Array.Copy(_items, 0, array, index, _size);
719Array.Copy(_items, 0, newItems, 0, _size);
System\Windows\Documents\FlowPosition.cs (2)
229Array.Copy(text.ToCharArray(flow._offset, maxLength), 0, chars, startIndex, maxLength);
233Array.Copy(text.ToCharArray(flow._offset - maxLength, maxLength), 0, chars, startIndex, maxLength);
System\Windows\Documents\TextSchema.cs (6)
57Array.Copy(textElementPropertyList, 0, _inheritableTextElementProperties, 0, textElementPropertyList.Length);
58Array.Copy(Typography.TypographyPropertiesList, 0, _inheritableTextElementProperties, textElementPropertyList.Length, Typography.TypographyPropertiesList.Length);
69Array.Copy(blockPropertyList, 0, _inheritableBlockProperties, 0, blockPropertyList.Length);
70Array.Copy(_inheritableTextElementProperties, 0, _inheritableBlockProperties, blockPropertyList.Length, _inheritableTextElementProperties.Length);
80Array.Copy(tableCellPropertyList, _inheritableTableCellProperties, tableCellPropertyList.Length);
81Array.Copy(_inheritableTextElementProperties, 0, _inheritableTableCellProperties, tableCellPropertyList.Length, _inheritableTextElementProperties.Length);
System\Windows\Documents\TextTreeTextBlock.cs (8)
96Array.Copy(_text, 0, newText, 0, _gapOffset);
98Array.Copy(_text, _gapOffset + _gapSize, newText, newText.Length - rightOfGapLength, rightOfGapLength);
123Array.Copy(textChars, textStartIndex, _text, logicalOffset, count);
151Array.Copy(_text, 0, newBlock._text, 0, _gapOffset);
165Array.Copy(_text, _gapOffset, newBlock._text, _gapOffset, MaxBlockSize - _gapOffset);
250Array.Copy(_text, logicalOffset, chars, charsStartIndex, copyCount);
265Array.Copy(_text, logicalOffset, chars, charsStartIndex, copyCount);
483Array.Copy(_text, sourceOffset, _text, destinationOffset, count);
PresentationFramework-SystemCore (3)
DynamicAccessorImpl.cs (3)
114Array.Copy(args, 0, delegateArgs, 2, rank);
125Array.Copy(args, 0, delegateArgs, 2, rank);
141Array.Copy(_accessors, 0, newAccessors, 0, _accessors.Length);
PresentationUI (4)
ReachFramework (14)
PrintConfig\PTProvider.cs (3)
686Array.Copy(src, (int)totalBytesWritten, data, 0, bytesToWrite);
740Array.Clear(data, 0, data.Length);
753Array.Copy(data, 0, dst, (int)totalBytesRead, bytesRead);
Serialization\Manager\ReachSerializationUtils.cs (5)
211Array.Sort(List, 0, Count);
233Array.Copy(List, 0, array, 0, Count);
254Array.Clear(List, 0, Count);
269Array.Copy(List, index + 1, List, index, (Count - index - 1));
272Array.Clear(List, Count - 1, 1);
Sockets.BindTests (2)
Sockets.FunctionalTests (2)
System.Collections (70)
System\Collections\BitArray.cs (8)
52Array.Fill(m_array, -1);
208Array.Copy(values, m_array, values.Length);
229Array.Copy(bits.m_array, m_array, arrayLength);
632Array.Copy(m_array, fromIndex, m_array, 0, ints - fromIndex);
684Array.Copy(m_array, 0, m_array, lengthToClear, lastIndex + 1 - lengthToClear);
726Array.Resize(ref m_array, newints);
748public unsafe void CopyTo(Array array, int index)
766Array.Copy(m_array, 0, intArray, index, quotient);
System\Collections\Generic\PriorityQueue.cs (9)
71_nodes = Array.Empty<(TElement, TPriority)>();
98_nodes = Array.Empty<(TElement, TPriority)>();
561Array.Clear(_nodes, 0, _size);
602Array.Resize(ref _nodes, _size);
621if ((uint)newcapacity > Array.MaxLength) newcapacity = Array.MaxLength;
630Array.Resize(ref _nodes, newcapacity);
935void ICollection.CopyTo(Array array, int index)
961Array.Copy(_queue._nodes, 0, array, index, _queue._size);
System\Collections\Generic\SortedList.cs (28)
75keys = Array.Empty<TKey>();
76values = Array.Empty<TValue>();
162Array.Sort<TKey, TValue>(keys, values, comparer);
183int i = Array.BinarySearch<TKey>(keys, 0, _size, key, comparer);
242Array.Copy(keys, newKeys, _size);
243Array.Copy(values, newValues, _size);
250keys = Array.Empty<TKey>();
251values = Array.Empty<TValue>();
396Array.Clear(keys, 0, _size);
400Array.Clear(values, 0, _size);
452void ICollection.CopyTo(Array array, int index)
513if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength;
583int i = Array.BinarySearch<TKey>(keys, 0, _size, key, comparer);
641int ret = Array.BinarySearch<TKey>(keys, 0, _size, key, comparer);
652return Array.IndexOf(values, value, 0, _size);
661Array.Copy(keys, index, keys, index + 1, _size - index);
662Array.Copy(values, index, values, index + 1, _size - index);
692Array.Copy(keys, index + 1, keys, index, _size - index);
693Array.Copy(values, index + 1, values, index, _size - index);
1048Array.Copy(_dict.keys, 0, array, arrayIndex, _dict.Count);
1051void ICollection.CopyTo(Array array, int arrayIndex)
1059Array.Copy(_dict.keys, 0, array!, arrayIndex, _dict.Count);
1094int i = Array.BinarySearch<TKey>(_dict.keys, 0,
1162Array.Copy(_dict.values, 0, array, arrayIndex, _dict.Count);
1165void ICollection.CopyTo(Array array, int index)
1173Array.Copy(_dict.values, 0, array!, index, _dict.Count);
1206return Array.IndexOf(_dict.values, value, 0, _dict.Count);
System\Collections\Generic\Stack.cs (12)
37_array = Array.Empty<T>();
75Array.Clear(_array, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
93return _size != 0 && Array.LastIndexOf(_array, item, _size - 1) != -1;
120void ICollection.CopyTo(Array array, int arrayIndex)
146Array.Copy(_array, 0, array, arrayIndex, _size);
147Array.Reverse(array, arrayIndex, _size);
170Array.Resize(ref _array, _size);
187Array.Resize(ref _array, capacity);
321if ((uint)newcapacity > Array.MaxLength) newcapacity = Array.MaxLength;
327Array.Resize(ref _array, newcapacity);
334return Array.Empty<T>();
System.Collections.Concurrent (33)
System\Collections\Concurrent\ConcurrentBag.cs (13)
259/// one-dimensional <see cref="System.Array">Array</see>, starting at the specified array
262/// <param name="array">The one-dimensional <see cref="System.Array">Array</see> that is the
265/// cref="System.Array">Array</see> must have zero-based indexing.</param>
333/// cref="System.Array"/>, starting at a particular
334/// <see cref="System.Array"/> index.
336/// <param name="array">The one-dimensional <see cref="System.Array">Array</see> that is the
339/// cref="System.Array">Array</see> must have zero-based indexing.</param>
356void ICollection.CopyTo(Array array, int index)
403return Array.Empty<T>();
795Array.Copy(_array, newArray, _array.Length);
799Array.Copy(_array, headIdx, newArray, 0, _array.Length - headIdx);
800Array.Copy(_array, 0, newArray, _array.Length - headIdx, headIdx);
852Array.Clear(_array);
System.Collections.Immutable (165)
System\Collections\Immutable\ImmutableArray.cs (7)
150Array? array = immutableArray.Array;
198Array.Copy(items, tmp, items.Length);
260Array.Copy(items.array!, start, array, 0, length);
466return Array.BinarySearch<T>(array.array!, value);
496return Array.BinarySearch<T>(array.array!, value, comparer);
530return Array.BinarySearch<T>(array.array!, index, length, value);
570return Array.BinarySearch<T>(array.array!, index, length, value, comparer);
System\Collections\Immutable\ImmutableArray_1.Builder.cs (25)
70Array.Copy(_elements, temp, _count);
109Array.Clear(_elements, value, _count - value);
260Array.Copy(_elements, index, _elements, index + 1, this.Count - index);
282Array.Copy(_elements, index, _elements, index + count, _count - index);
314Array.Copy(_elements, index, _elements, index + items.Length, _count - index);
317Array.Copy(items.array!, 0, _elements, index, items.Length);
371Array.Copy(items, 0, _elements, offset, items.Length);
386Array.Copy(items, 0, _elements, offset, items.Length);
402Array.Copy(items, 0, _elements, offset, length);
569Array.Copy(_elements, index + 1, _elements, index, this.Count - index - 1);
595Array.Clear(_elements, index, length); // Clear the elements so that the gc can reclaim the references.
598Array.Copy(_elements, index + length, _elements, index, this.Count - index - length);
690Array.Copy(_elements, result, this.Count);
703Array.Copy(_elements, 0, array, index, this.Count);
713Array.Copy(_elements, 0, destination, 0, this.Count);
729Array.Copy(_elements, sourceIndex, destination, destinationIndex, length);
741Array.Resize(ref _elements, newCapacity);
804return Array.IndexOf(_elements, item, startIndex, count);
901return Array.LastIndexOf(_elements, item, startIndex, count);
923Array.Reverse<T>(_elements, 0, _count);
948Array.Sort(_elements, 0, this.Count, Comparer<T>.Default);
988Array.Sort(_elements, 0, _count, comparer);
1007Array.Sort(_elements, index, count, comparer);
1087Array.Copy(_elements, copied + removed, _elements, copied, copyLength);
1093Array.Copy(_elements, copied + removed, _elements, copied, _elements.Length - (copied + removed));
System\Collections\Immutable\ImmutableArray_1.cs (29)
182return Array.IndexOf(self.array!, item, startIndex, count);
267return Array.LastIndexOf(self.array!, item, startIndex, count);
329Array.Copy(self.array!, tmp, index);
333Array.Copy(self.array!, index, tmp, index + 1, self.Length - index);
367Array.Copy(self.array!, tmp, index);
371Array.Copy(self.array!, index, tmp, index + count, self.Length - index);
467Array.Copy(self.array!, tmp, self.Length);
468Array.Copy(items, 0, tmp, self.Length, length);
491Array.Copy(self.array!, tmp, self.Length);
492Array.Copy(items, 0, tmp, self.Length, items.Length);
561Array.Copy(self.array!, tmp, self.Length);
661Array.Copy(self.array!, tmp, index);
662Array.Copy(self.array!, index + length, tmp, index, self.Length - index - length);
851Array.Copy(self.array!, tmp, self.Length);
852Array.Sort(tmp, index, count, comparer);
1367/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index.
1369/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param>
1371void ICollection.CopyTo(Array array, int index)
1375Array.Copy(self.array!, 0, array, index, self.Length);
1387Array? otherArray = other as Array;
1437Array? otherArray = other as Array;
1497Array.Copy(self.array!, copied + removed, newArray, copied, copyLength);
1503Array.Copy(self.array!, copied + removed, newArray, copied, self.Length - (copied + removed));
1517Array.Copy(array!, tmp, index);
1522Array.Copy(array!, index, tmp, index + items.Length, Length - index);
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (4)
204Array? IImmutableArray.Array
230Array.Copy(self.array!, destination, self.Length);
242Array.Copy(self.array!, 0, destination, destinationIndex, self.Length);
256Array.Copy(self.array!, sourceIndex, destination, destinationIndex, length);
System.Collections.NonGeneric (54)
System\Collections\Queue.cs (16)
88Array.Copy(_array, _head, q._array, 0, firstPart);
91Array.Copy(_array, 0, q._array, _array.Length - _head, numToCopy);
110Array.Clear(_array, _head, _size);
113Array.Clear(_array, _head, _array.Length - _head);
114Array.Clear(_array, 0, _tail);
128public virtual void CopyTo(Array array, int index)
144Array.Copy(_array, _head, array, index, firstPart);
147Array.Copy(_array, 0, array, index + _array.Length - _head, numToCopy);
252return Array.Empty<object>();
257Array.Copy(_array, _head, arr, 0, _size);
261Array.Copy(_array, _head, arr, 0, _array.Length - _head);
262Array.Copy(_array, 0, arr, _array.Length - _head, _tail);
278Array.Copy(_array, _head, newarray, 0, _size);
282Array.Copy(_array, _head, newarray, 0, _array.Length - _head);
283Array.Copy(_array, 0, newarray, _array.Length - _head, _tail);
359public override void CopyTo(Array array, int arrayIndex)
System\Collections\SortedList.cs (29)
82keys = Array.Empty<object>();
83values = Array.Empty<object>();
162Array.Sort(keys, comparer);
177int i = Array.BinarySearch(keys, 0, _size, key, comparer);
210Array.Copy(keys, newKeys, _size);
211Array.Copy(values, newValues, _size);
220keys = Array.Empty<object>();
221values = Array.Empty<object>();
286Array.Clear(keys, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
287Array.Clear(values, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
297Array.Copy(keys, sl.keys, _size);
298Array.Copy(values, sl.values, _size);
334public virtual void CopyTo(Array array, int arrayIndex)
374if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength;
457int i = Array.BinarySearch(keys, 0, _size, key, comparer);
479int ret = Array.BinarySearch(keys, 0, _size, key, comparer);
491return Array.IndexOf(values, value, 0, _size);
500Array.Copy(keys, index, keys, index + 1, _size - index);
501Array.Copy(values, index, values, index + 1, _size - index);
518Array.Copy(keys, index + 1, keys, index, _size - index);
519Array.Copy(values, index + 1, values, index, _size - index);
680public override void CopyTo(Array array, int index)
938public void CopyTo(Array array, int arrayIndex)
944Array.Copy(sortedList.keys, 0, array!, arrayIndex, sortedList.Count);
973int i = Array.BinarySearch(sortedList.keys, 0,
1041public void CopyTo(Array array, int arrayIndex)
1047Array.Copy(sortedList.values, 0, array!, arrayIndex, sortedList.Count);
1074return Array.IndexOf(sortedList.values, value, 0, sortedList.Count);
System.Collections.Specialized (13)
System.ComponentModel.Annotations (8)
System.ComponentModel.Composition (33)
System.ComponentModel.TypeConverter (68)
System\ComponentModel\EventDescriptorCollection.cs (11)
35_events = Array.Empty<EventDescriptor>();
117void ICollection.CopyTo(Array array, int index)
120Array.Copy(_events, 0, array, index, Count);
131Array.Copy(_events, newEvents, Count);
161Array.Copy(_events, newEvents, Count);
199public int IndexOf(EventDescriptor? value) => Array.IndexOf(_events, value, 0, Count);
211Array.Copy(_events, index, _events, index + 1, Count - index);
241Array.Copy(_events, index + 1, _events, index, Count - index - 1);
364Array.Sort(_events, sorter);
415private readonly Array? _array;
419public ArraySubsetEnumerator(Array? array, int count)
System\ComponentModel\PropertyDescriptorCollection.cs (11)
40_properties = Array.Empty<PropertyDescriptor>();
124public void CopyTo(Array array, int index)
127Array.Copy(_properties, 0, array, index, Count);
138Array.Copy(_properties, newProps, Count);
168Array.Copy(_properties, newProps, Count);
232public int IndexOf(PropertyDescriptor? value) => Array.IndexOf(_properties, value, 0, Count);
244Array.Copy(_properties, index, _properties, index + 1, Count - index);
274Array.Copy(_properties, index + 1, _properties, index, Count - index - 1);
382Array.Sort(_properties, sorter);
396Array.Copy(_properties, enumProps, Count);
527Array.Copy(_properties, newProps, Count);
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
330_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>());
435_propInfo = _componentClass.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>());
799memberInfo = currentReflectType.GetProperty(Name, bindingFlags, binder: null, PropertyType, Type.EmptyTypes, Array.Empty<ParameterModifier>());
System.Composition.AttributedModel (1)
System.Composition.Hosting (7)
System.Composition.TypedParts (9)
System.Console (2)
System.Data.Common (125)
System\Data\DataTableReader.cs (3)
380Array.Copy(tempBuffer, dataIndex, buffer, bufferIndex, byteCount);
443Array.Copy(tempBuffer, dataIndex, buffer, bufferIndex, charCount);
680Array.Copy(_currentDataRow!.ItemArray, values, _currentDataRow.ItemArray.Length > values.Length ? values.Length : _currentDataRow.ItemArray.Length);
System\Data\SQLTypes\SQLChars.cs (3)
181Array.Copy(_rgchBuf!, buffer, (int)_lCurLen);
321Array.Copy(_rgchBuf!, offset, buffer, offsetInBuffer, count);
385Array.Copy(buffer, offsetInBuffer, _rgchBuf, offset, count);
System.Diagnostics.DiagnosticSource (7)
System.Diagnostics.Process (11)
System.Diagnostics.TraceSource (4)
System.DirectoryServices (3)
System.DirectoryServices.AccountManagement (2)
System.Formats.Asn1 (6)
System.Formats.Cbor (3)
System.Formats.Tar (3)
System.IO.Compression (8)
System.IO.FileSystem.Watcher (4)
System.IO.Pipelines (1)
System.Linq (14)
System\Linq\Grouping.cs (5)
374Array.Resize(ref _elements, checked(_count * 2));
385Array.Resize(ref _elements, _count);
407bool ICollection<TElement>.Contains(TElement item) => Array.IndexOf(_elements, item, 0, _count) >= 0;
410Array.Copy(_elements, 0, array, arrayIndex, _count);
414int IList<TElement>.IndexOf(TElement item) => Array.IndexOf(_elements, item, 0, _count);
System.Linq.Expressions (72)
System\Linq\Expressions\Interpreter\CallInstruction.cs (7)
129typeof(Array).GetMethod("GetValue", new[] { typeof(int) }) :
135typeof(Array).GetMethod("GetValue", new[] { typeof(int), typeof(int) }) :
141typeof(Array).GetMethod("GetValue", new[] { typeof(int), typeof(int), typeof(int) }) :
154public static void ArrayItemSetter1(Array array, int index0, object value)
159public static void ArrayItemSetter2(Array array, int index0, int index1, object value)
164public static void ArrayItemSetter3(Array array, int index0, int index1, int index2, object value)
370return Array.Empty<object>();
System\Runtime\CompilerServices\CallSite.cs (5)
253Array.Copy(rules, 0, temp, 1, rules.Length);
258Array.Copy(rules, 0, temp, 1, MaxRules - 1);
368ParameterExpression[] @params = Array.ConvertAll(invoke.GetParametersCached(), p => Expression.Parameter(p.ParameterType, p.Name));
597Expression[] argsElements = Array.ConvertAll(arguments, p => Convert(p, typeof(object)));
671ParameterExpression[] @params = Array.ConvertAll(invoke.GetParametersCached(), p => Expression.Parameter(p.ParameterType, p.Name));
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (16)
28_items = Array.Empty<T>();
91Array.Copy(_items, newItems, _size);
97_items = Array.Empty<T>();
117return Array.IndexOf(_items, item, 0, _size);
135Array.Copy(_items, index, _items, index + 1, _size - index);
154Array.Copy(_items, index + 1, _items, index, _size - index);
207Array.Clear(_items, 0, _size);
221/// Copies the elements of the <see cref="ReadOnlyCollectionBuilder{T}"/> to an <see cref="Array"/>,
222/// starting at particular <see cref="Array"/> index.
224/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ReadOnlyCollectionBuilder{T}"/>.</param>
226public void CopyTo(T[] array, int arrayIndex) => Array.Copy(_items, 0, array, arrayIndex, _size);
351void ICollection.CopyTo(Array array, int index)
358Array.Copy(_items, 0, array, index, _size);
385Array.Reverse(_items, index, count);
396Array.Copy(_items, array, _size);
423_items = Array.Empty<T>();
System.Linq.Parallel (6)
System.Management (4)
System.Memory (7)
System.Net.Http (79)
System\Net\Http\Headers\ObjectCollection.cs (5)
76Array.Copy(array, newItems, size);
93_items is T[] items && Array.IndexOf(items, item, 0, _size) != -1;
99Array.Copy(items, 0, array, arrayIndex, _size);
129int index = Array.IndexOf(items, item, 0, _size);
135Array.Copy(items, index + 1, items, index, _size - index);
System\Net\Http\SocketsHttpHandler\ConnectionPool\RequestQueue.cs (4)
28_array = Array.Empty<QueueItem>();
99Array.Copy(_array, _head, newArray, 0, _size);
103Array.Copy(_array, _head, newArray, 0, _array.Length - _head);
104Array.Copy(_array, 0, newArray, _array.Length - _head, _tail);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (46)
504(KnownHeaders.AcceptCharset.Descriptor, Array.Empty<byte>()),
506(KnownHeaders.AcceptLanguage.Descriptor, Array.Empty<byte>()),
507(KnownHeaders.AcceptRanges.Descriptor, Array.Empty<byte>()),
508(KnownHeaders.Accept.Descriptor, Array.Empty<byte>()),
509(KnownHeaders.AccessControlAllowOrigin.Descriptor, Array.Empty<byte>()),
510(KnownHeaders.Age.Descriptor, Array.Empty<byte>()),
511(KnownHeaders.Allow.Descriptor, Array.Empty<byte>()),
512(KnownHeaders.Authorization.Descriptor, Array.Empty<byte>()),
513(KnownHeaders.CacheControl.Descriptor, Array.Empty<byte>()),
514(KnownHeaders.ContentDisposition.Descriptor, Array.Empty<byte>()),
515(KnownHeaders.ContentEncoding.Descriptor, Array.Empty<byte>()),
516(KnownHeaders.ContentLanguage.Descriptor, Array.Empty<byte>()),
517(KnownHeaders.ContentLength.Descriptor, Array.Empty<byte>()),
518(KnownHeaders.ContentLocation.Descriptor, Array.Empty<byte>()),
519(KnownHeaders.ContentRange.Descriptor, Array.Empty<byte>()),
520(KnownHeaders.ContentType.Descriptor, Array.Empty<byte>()),
521(KnownHeaders.Cookie.Descriptor, Array.Empty<byte>()),
522(KnownHeaders.Date.Descriptor, Array.Empty<byte>()),
523(KnownHeaders.ETag.Descriptor, Array.Empty<byte>()),
524(KnownHeaders.Expect.Descriptor, Array.Empty<byte>()),
525(KnownHeaders.Expires.Descriptor, Array.Empty<byte>()),
526(KnownHeaders.From.Descriptor, Array.Empty<byte>()),
527(KnownHeaders.Host.Descriptor, Array.Empty<byte>()),
528(KnownHeaders.IfMatch.Descriptor, Array.Empty<byte>()),
529(KnownHeaders.IfModifiedSince.Descriptor, Array.Empty<byte>()),
530(KnownHeaders.IfNoneMatch.Descriptor, Array.Empty<byte>()),
531(KnownHeaders.IfRange.Descriptor, Array.Empty<byte>()),
532(KnownHeaders.IfUnmodifiedSince.Descriptor, Array.Empty<byte>()),
533(KnownHeaders.LastModified.Descriptor, Array.Empty<byte>()),
534(KnownHeaders.Link.Descriptor, Array.Empty<byte>()),
535(KnownHeaders.Location.Descriptor, Array.Empty<byte>()),
536(KnownHeaders.MaxForwards.Descriptor, Array.Empty<byte>()),
537(KnownHeaders.ProxyAuthenticate.Descriptor, Array.Empty<byte>()),
538(KnownHeaders.ProxyAuthorization.Descriptor, Array.Empty<byte>()),
539(KnownHeaders.Range.Descriptor, Array.Empty<byte>()),
540(KnownHeaders.Referer.Descriptor, Array.Empty<byte>()),
541(KnownHeaders.Refresh.Descriptor, Array.Empty<byte>()),
542(KnownHeaders.RetryAfter.Descriptor, Array.Empty<byte>()),
543(KnownHeaders.Server.Descriptor, Array.Empty<byte>()),
544(KnownHeaders.SetCookie.Descriptor, Array.Empty<byte>()),
545(KnownHeaders.StrictTransportSecurity.Descriptor, Array.Empty<byte>()),
546(KnownHeaders.TransferEncoding.Descriptor, Array.Empty<byte>()),
547(KnownHeaders.UserAgent.Descriptor, Array.Empty<byte>()),
548(KnownHeaders.Vary.Descriptor, Array.Empty<byte>()),
549(KnownHeaders.Via.Descriptor, Array.Empty<byte>()),
550(KnownHeaders.WWWAuthenticate.Descriptor, Array.Empty<byte>()),
System.Net.HttpListener (8)
System.Net.Mail (9)
System.Net.NameResolution (10)
System.Net.NetworkInformation (10)
System.Net.Ping (2)
System.Net.Primitives (4)
System.Net.Quic (5)
System.Net.Requests (5)
System.Net.Security (19)
System.Net.Sockets (7)
System.Net.WebClient (2)
System.Net.WebHeaderCollection (1)
System.Net.WebProxy (2)
System.ObjectModel (3)
System.Private.CoreLib (597)
src\libraries\System.Private.CoreLib\src\System\Array.cs (64)
75public static unsafe Array CreateInstance(Type elementType, int length)
89public static unsafe Array CreateInstance(Type elementType, int length1, int length2)
105public static unsafe Array CreateInstance(Type elementType, int length1, int length2, int length3)
121public static unsafe Array CreateInstance(Type elementType, params int[] lengths)
146public static unsafe Array CreateInstance(Type elementType, int[] lengths, int[] lowerBounds)
175public static Array CreateInstance(Type elementType, params long[] lengths)
194/// Creates a one-dimensional <see cref="Array"/> of the specified array type and length, with zero-based indexing.
197/// <param name="length">The size of the <see cref="Array"/> to create.</param>
198/// <returns>A new one-dimensional <see cref="Array"/> of the specified <see cref="Type"/> with the specified length.</returns>
207public static unsafe Array CreateInstanceFromArrayType(Type arrayType, int length)
226/// Creates a multidimensional <see cref="Array"/> of the specified <see cref="Type"/> and dimension lengths, with zero-based indexing.
230/// <returns>A new multidimensional <see cref="Array"/> of the specified Type with the specified length for each dimension, using zero-based indexing.</returns>
244public static unsafe Array CreateInstanceFromArrayType(Type arrayType, params int[] lengths)
272/// Creates a multidimensional <see cref="Array"/> of the specified <see cref="Type"/> and dimension lengths, with the specified lower bounds.
276/// <param name="lowerBounds">A one-dimensional array that contains the lower bound (starting index) of each dimension of the <see cref="Array"/> to create.</param>
277/// <returns>A new multidimensional <see cref="Array"/> of the specified <see cref="Type"/> with the specified length and lower bound for each dimension.</returns>
296public static unsafe Array CreateInstanceFromArrayType(Type arrayType, int[] lengths, int[] lowerBounds)
331public static void Copy(Array sourceArray, Array destinationArray, long length)
340public static void Copy(Array sourceArray, long sourceIndex, Array destinationArray, long destinationIndex, long length)
360public static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
392public static unsafe void Copy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
700Array? o = other as Array;
734if (!(other is Array o) || o.Length != this.Length)
783public static int BinarySearch(Array array, object? value)
803public static int BinarySearch(Array array, int index, int length, object? value)
822public static int BinarySearch(Array array, object? value, IComparer? comparer)
844public static int BinarySearch(Array array, int index, int length, object? value, IComparer? comparer)
957static int GenericBinarySearch<T>(Array array, int adjustedIndex, int length, object value) where T : struct, IComparable<T>
1051public void CopyTo(Array array, int index)
1059public void CopyTo(Array array, long index)
1342public static int IndexOf(Array array, object? value)
1355public static int IndexOf(Array array, object? value, int startIndex)
1369public static int IndexOf(Array array, object? value, int startIndex, int count)
1456static int GenericIndexOf<T>(Array array, object value, int adjustedIndex, int length) where T : struct, IEquatable<T>
1566public static int LastIndexOf(Array array, object? value)
1579public static int LastIndexOf(Array array, object? value, int startIndex)
1593public static int LastIndexOf(Array array, object? value, int startIndex, int count)
1686static int GenericLastIndexOf<T>(Array array, object value, int adjustedIndex, int length) where T : struct, IEquatable<T>
1822public static void Reverse(Array array)
1835public static void Reverse(Array array, int index, int length)
1932public static void Sort(Array array)
1945public static void Sort(Array keys, Array? items)
1956public static void Sort(Array array, int index, int length)
1967public static void Sort(Array keys, Array? items, int index, int length)
1978public static void Sort(Array array, IComparer? comparer)
1993public static void Sort(Array keys, Array? items, IComparer? comparer)
2006public static void Sort(Array array, int index, int length, IComparer? comparer)
2019public static void Sort(Array keys, Array? items, int index, int length, IComparer? comparer)
2105static void GenericSort<T>(Array keys, Array? items, int adjustedIndex, int length) where T : struct
2480private readonly Array keys;
2481private readonly Array? items;
2484internal SorterGenericArray(Array keys, Array? items, IComparer comparer)
2691private static Span<T> UnsafeArrayAsSpan<T>(Array array, int adjustedIndex, int length) =>
src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (5)
109System.Array.Copy(_array!, _offset, destination, destinationIndex, _count);
122System.Array.Copy(_array!, _offset, destination._array!, destination._offset, _count);
165System.Array.Copy(_array!, _offset, array, 0, _count);
201int index = System.Array.IndexOf(_array!, item, _offset, _count);
242int index = System.Array.IndexOf(_array!, item, _offset, _count);
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (62)
30_items = Array.Empty<object>();
42_items = Array.Empty<object>();
58_items = Array.Empty<object>();
90Array.Copy(_items, newItems, _size);
197return Array.BinarySearch((Array)_items, index, count, value, comparer);
216Array.Clear(_items, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
230Array.Copy(_items, la._items, _size);
239public virtual bool Contains(object? item) => Array.IndexOf(_items, item, 0, _size) >= 0;
244public virtual void CopyTo(Array array) => CopyTo(array, 0);
249public virtual void CopyTo(Array array, int arrayIndex)
255Array.Copy(_items, 0, array!, arrayIndex, _size);
262public virtual void CopyTo(int index, Array array, int arrayIndex, int count)
270Array.Copy(_items, index, array!, arrayIndex, count);
284if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength;
344return Array.IndexOf((Array)_items, value, 0, _size);
360return Array.IndexOf((Array)_items, value, startIndex, _size - startIndex);
377return Array.IndexOf((Array)_items, value, startIndex, count);
392Array.Copy(_items, index, _items, index + 1, _size - index);
417Array.Copy(_items, index, _items, index + count, _size - index);
480return Array.LastIndexOf((Array)_items, value, startIndex, count);
521Array.Copy(_items, index + 1, _items, index, _size - index);
542Array.Copy(_items, index + count, _items, index, _size - index);
582Array.Reverse(_items, index, count);
641Array.Sort(_items, index, count, comparer);
668return Array.Empty<object>();
671Array.Copy(_items, array, _size);
681public virtual Array ToArray(Type type)
685Array array = Array.CreateInstance(type, _size);
686Array.Copy(_items, array, _size);
813public override void CopyTo(Array array, int index)
818public override void CopyTo(int index, Array array, int arrayIndex, int count)
1041Array.Sort(array, 0, count, comparer);
1052return Array.Empty<object?>();
1060public override Array ToArray(Type type)
1064Array array = Array.CreateInstance(type, _list.Count);
1268public override void CopyTo(Array array)
1276public override void CopyTo(Array array, int index)
1284public override void CopyTo(int index, Array array, int arrayIndex, int count)
1453public override Array ToArray(Type type)
1539public void CopyTo(Array array, int index)
1628public void CopyTo(Array array, int index)
1727public override void CopyTo(Array array, int index)
1732public override void CopyTo(int index, Array array, int arrayIndex, int count)
1836public override Array ToArray(Type type)
1887public void CopyTo(Array array, int index)
1982public override void CopyTo(Array array, int index)
1987public override void CopyTo(int index, Array array, int arrayIndex, int count)
2088public override Array ToArray(Type type)
2277public override void CopyTo(Array array, int index)
2291public override void CopyTo(int index, Array array, int arrayIndex, int count)
2526return Array.Empty<object?>();
2533public override Array ToArray(Type type)
2538Array array = Array.CreateInstance(type, _baseSize);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (27)
114Array.Copy(_items, newItems, _size);
309return Array.BinarySearch(_items, index, count, item, comparer);
329Array.Clear(_items, 0, size); // Clear the elements so that the gc can reclaim the references.
387void ICollection.CopyTo(Array array, int arrayIndex)
397Array.Copy(_items, 0, array!, arrayIndex, _size);
417Array.Copy(_items, index, array, arrayIndex, count);
423Array.Copy(_items, 0, array, arrayIndex, _size);
476Array.Copy(_items, newItems, length: indexToInsert);
481Array.Copy(_items, indexToInsert, newItems, indexToInsert + insertionCount, _size - indexToInsert);
496if ((uint)newCapacity > Array.MaxLength) newCapacity = Array.MaxLength;
691Array.Copy(_items, index, list._items, 0, count);
719=> Array.IndexOf(_items, item, 0, _size);
743return Array.IndexOf(_items, item, index, _size - index);
763return Array.IndexOf(_items, item, index, count);
783Array.Copy(_items, index, _items, index + 1, _size - index);
832Array.Copy(_items, index, _items, index + count, _size - index);
839Array.Copy(_items, 0, _items, index, index);
841Array.Copy(_items, index + count, _items, index * 2, _size - index);
935return Array.LastIndexOf(_items, item, index, count);
990Array.Clear(_items, freeIndex, _size - freeIndex); // Clear the elements so that the gc can reclaim the references.
1010Array.Copy(_items, index + 1, _items, index, _size - index);
1040Array.Copy(_items, index + count, _items, index, _size - index);
1046Array.Clear(_items, _size, count);
1077Array.Reverse(_items, index, count);
1117Array.Sort(_items, index, count, comparer);
1146Array.Copy(_items, array, _size);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (21)
34_array = Array.Empty<T>();
76Array.Clear(_array, _head, _size);
80Array.Clear(_array, _head, _array.Length - _head);
81Array.Clear(_array, 0, _tail);
113Array.Copy(_array, _head, array, arrayIndex, firstPart);
117Array.Copy(_array, 0, array, arrayIndex + _array.Length - _head, numToCopy);
121void ICollection.CopyTo(Array array, int index)
152Array.Copy(_array, _head, array, index, firstPart);
157Array.Copy(_array, 0, array, index + _array.Length - _head, numToCopy);
273return Array.IndexOf(_array, item, _head, _size) >= 0;
278Array.IndexOf(_array, item, _head, _array.Length - _head) >= 0 ||
279Array.IndexOf(_array, item, 0, _tail) >= 0;
290return Array.Empty<T>();
297Array.Copy(_array, _head, arr, 0, _size);
301Array.Copy(_array, _head, arr, 0, _array.Length - _head);
302Array.Copy(_array, 0, arr, _array.Length - _head, _tail);
318Array.Copy(_array, _head, newarray, 0, _size);
322Array.Copy(_array, _head, newarray, 0, _array.Length - _head);
323Array.Copy(_array, 0, newarray, _array.Length - _head, _tail);
406if ((uint)newcapacity > Array.MaxLength) newcapacity = Array.MaxLength;
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (18)
317Array.Copy(args, objs, lastPos);
318objs[lastPos] = Array.CreateInstance(paramArrayTypes[0], 1);
319((Array)objs[lastPos]).SetValue(args[lastPos], 0);
338objs[i] = Array.CreateInstance(paramArrayTypes[0], 0); // create an empty array for the
355Array.Copy(args, objs, paramArrayPos);
356objs[paramArrayPos] = Array.CreateInstance(paramArrayTypes[0], args.Length - paramArrayPos);
357Array.Copy(args, paramArrayPos, (Array)objs[paramArrayPos], 0, args.Length - paramArrayPos);
407Array.Copy(args, objs, lastPos);
408objs[lastPos] = Array.CreateInstance(paramArrayTypes[currentMin], 1);
409((Array)objs[lastPos]).SetValue(args[lastPos], 0);
425objs[i] = Array.CreateInstance(paramArrayTypes[currentMin], 0);
440Array.Copy(args, objs, paramArrayPos);
441objs[paramArrayPos] = Array.CreateInstance(paramArrayTypes[currentMin], args.Length - paramArrayPos);
442Array.Copy(args, paramArrayPos, (Array)objs[paramArrayPos], 0, args.Length - paramArrayPos);
770Array.Copy(args, newArgs, paramArrayPos);
783Array.Copy(args, newArgs, binderState._originalSize);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (4)
93parameters = Array.Empty<EventParameterInfo>();
124parameters = Array.Empty<EventParameterInfo>();
172return GenerateMetadata(eventId, eventName, keywords, level, version, opcode, Array.Empty<EventParameterInfo>());
202return GenerateMetadata(eventId, eventName, keywords, level, version, opcode, Array.Empty<EventParameterInfo>());
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (9)
402return Array.Empty<EventSource>();
1695Array.Resize(ref bytes, 16);
1849decoded = Array.Empty<byte>();
3386Array.Copy(args, 1, newargs, 0, args.Length - 1);
3437Array.Copy(eventData, newValues, eventData.Length);
3511Array.Copy(eventData, newValues, newValues.Length);
5289return Array.Empty<ulong>();
5458return (str != "") ? Encoding.UTF8.GetBytes(str) : Array.Empty<byte>();
5658Array.Sort(sortedStrings, StringComparer.Ordinal);
src\libraries\System.Private.CoreLib\src\System\SearchValues\EmptySearchValues.cs (1)
10Array.Empty<T>();
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (4)
331Array.Copy(_registeredWaits, removeAt + 1, _registeredWaits, removeAt, count - (removeAt + 1));
337Array.Copy(_waitHandles, removeAt + 1, _waitHandles, removeAt, count - (removeAt + 1));
445if (Array.IndexOf(_registeredWaits, handle) >= 0)
447if (Array.IndexOf(_pendingRemoves, handle) < 0)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (4)
5313signaledTaskIndex = Array.IndexOf(tasks, firstCompleted.Result);
6198return new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default);
6232new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default) :
6307return new Task<TResult[]>(false, Array.Empty<TResult>(), TaskCreationOptions.None, default);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (8)
35Debug.Assert(Array.IndexOf(oldQueues, queue) < 0);
38Array.Copy(oldQueues, newQueues, oldQueues.Length);
58int pos = Array.IndexOf(oldQueues, queue);
68Array.Copy(oldQueues, 1, newQueues, 0, newQueues.Length);
72Array.Copy(oldQueues, newQueues, newQueues.Length);
76Array.Copy(oldQueues, newQueues, pos);
77Array.Copy(oldQueues, pos + 1, newQueues, pos, newQueues.Length - pos);
405s_assignableWorkItemQueueCount > 0 ? new int[s_assignableWorkItemQueueCount] : Array.Empty<int>();
src\System\Array.CoreCLR.cs (25)
22private static unsafe Array InternalCreate(RuntimeType elementType, int rank, int* pLengths, int* pLowerBounds)
24Array? retArray = null;
30private static unsafe Array InternalCreateFromArrayType(RuntimeType arrayType, int rank, int* pLengths, int* pLowerBounds)
32Array? retArray = null;
38private static unsafe void CopyImpl(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length, bool reliable)
93private static extern bool IsSimpleCopy(Array sourceArray, Array destinationArray);
99private static unsafe void CopySlow(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
151private static unsafe void CopyImplUnBoxEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
193private static unsafe void CopyImplBoxEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
215private static unsafe void CopyImplCastCheckEachElement(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
234private static unsafe void CopyImplPrimitiveWiden(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
401public static void ConstrainedCopy(Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)
411public static unsafe void Clear(Array array)
436public static unsafe void Clear(Array array, int index, int length)
723Array.Copy(@this, 0, array, index, @this.Length);
771return Array.IndexOf(@this, value, 0, @this.Length) >= 0;
792return Array.IndexOf(@this, value, 0, @this.Length);
src\System\Reflection\Emit\CustomAttributeBuilder.cs (11)
35this(con, constructorArgs, Array.Empty<PropertyInfo>(), Array.Empty<object>(), Array.Empty<FieldInfo>(), Array.Empty<object>())
42this(con, constructorArgs, namedProperties, propertyValues, Array.Empty<FieldInfo>(), Array.Empty<object>())
49this(con, constructorArgs, Array.Empty<PropertyInfo>(), Array.Empty<object>(), namedFields, fieldValues)
83Array.Copy(constructorArgs, m_constructorArgs, constructorArgs.Length);
444Array a = (Array)value;
src\System\Reflection\Emit\RuntimeILGenerator.cs (8)
33Array.Copy(incoming, temp, incoming.Length);
200Array.Copy(m_ILStream, newBytes, m_length);
245Array.Copy(m_exceptions!, temp, m_exceptionCount);
262Array.Copy(m_ILStream, temp, m_ILStream.Length);
367Array.Copy(m_RelocFixupList!, narrowTokens, m_RelocFixupCount);
1576Array.Copy(m_iOffsets, temp, m_iCount);
1580Array.Copy(m_ScopeActions, tempSA, m_iCount);
1584Array.Copy(m_localSymInfos, tempLSI, m_iCount);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (8)
101Array.Copy(parameterTypes, m_parameterTypes, parameterTypes.Length);
632Array.Copy(parameterTypes, m_parameterTypes, parameterTypes.Length);
779Array.Copy(m_namespace, strTemp, m_iNameSpaceCount);
801Array.Copy(m_iLocalSlot, temp, m_iLocalSymCount);
805Array.Copy(m_iStartOffset, temp, m_iLocalSymCount);
809Array.Copy(m_iEndOffset, temp, m_iLocalSymCount);
813Array.Copy(m_strName, strTemp, m_iLocalSymCount);
817Array.Copy(m_ubSignature, ubTemp, m_iLocalSymCount);
src\System\RuntimeType.CoreCLR.cs (11)
84return Array.Empty<T>();
88Array.Resize(ref _items, _count);
104Array.Copy(_items!, 0, array, index, _count);
127Array.Resize(ref _items, newCapacity);
465Array.Resize(ref m_allMembers, memberCount);
579Array.Resize(ref cachedMembers2, newSize);
758return Array.Empty<RuntimeConstructorInfo>();
1102return Array.Empty<RuntimeType>();
1642internal object[] GetEmptyArray() => _emptyArray ??= (object[])Array.CreateInstance(m_runtimeType, 0);
3790args ??= Array.Empty<object>();
3835Array.Resize(ref cons, consCount);
System.Private.CoreLib.Generators (13)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (12)
233return Array.Empty<INamedTypeSymbol>();
243return Array.Empty<INamedTypeSymbol>();
259Array.Copy(decomposedLeft, retVal, decomposedLeft.Length);
260Array.Copy(decomposedRight, 0, retVal, decomposedLeft.Length, decomposedRight.Length);
265return Array.Empty<INamedTypeSymbol>();
270return Array.Empty<INamedTypeSymbol>();
278return Array.Empty<INamedTypeSymbol[]>();
306return Array.Empty<INamedTypeSymbol[]>();
345return Array.Empty<INamedTypeSymbol[]>();
348Array.Copy(decomposedLeft, retVal, decomposedLeft.Length);
349Array.Copy(decomposedRight, 0, retVal, decomposedLeft.Length, decomposedRight.Length);
376return Array.Empty<INamedTypeSymbol[]>();
System.Private.DataContractSerialization (86)
System\Xml\XmlBaseReader.cs (7)
275Array.Copy(_elementNodes, newElementNodes, _depth);
309Array.Copy(_attributeNodes, newAttributeNodes, attributeIndex);
1452Array.Copy(_trailChars!, 0, chars, charCount, _trailCharCount);
1484Array.Copy(chars, charCount, _trailChars, 0, _trailCharCount);
2642Array.Sort(_indices, 0, _attributeCount, this);
2866Array.Copy(_attributes, newAttributes, _attributeCount);
2904Array.Copy(_namespaces, newNamespaces, _nsCount);
System\Xml\XmlCanonicalWriter.cs (5)
156Array.Copy(_scopes, newScopes, _depth);
666Array.Copy(_attributes, newAttributes, _attributeCount);
684Array.Copy(_xmlnsAttributes, newXmlnsAttributes, _xmlnsAttributeCount);
732Array.Copy(_xmlnsAttributes, xmlnsAttributeIndex, _xmlnsAttributes, xmlnsAttributeIndex + 1, _xmlnsAttributeCount - xmlnsAttributeIndex);
882Array.Sort(indices, this);
System.Private.Uri (6)
System.Private.Xml (208)
System\Xml\BinaryXml\XmlBinaryReader.cs (11)
1902System.Array.Copy(symtable, n, symNum);
1918System.Array.Copy(qnametable, n, qnameNum);
1962Array.Clear(_symbolTables.symtable, 1, _symbolTables.symtable.Length - 1);
1963Array.Clear(_symbolTables.qnametable);
2011System.Array.Copy(data, mark, newdata, 0, cbKeep);
2016System.Array.Copy(data, mark, data, 0, cbKeep);
2414System.Array.Copy(_elementStack, n, _elementStack.Length);
2423System.Array.Copy(_attributes, n, _attrCount);
2736Array.Clear(_attrHashTbl, 0, tblSize);
4143Array.Copy(_data, _tokDataPos, data, 0, _tokLen);
4323Array.Copy(_data, _tokDataPos, data, 0, _tokLen);
System\Xml\Core\XmlTextReaderImpl.cs (8)
4502Array.Copy(_nodes, _index + 1, nameSortedAttributes, 0, _attrCount);
4503Array.Sort<object>(nameSortedAttributes, DtdDefaultAttributeInfoToNodeDataComparer.Instance);
5007Array.Copy(_nodes, _index + 1, _attrDuplSortingArray, 0, _attrCount);
5008Array.Sort(_attrDuplSortingArray, 0, _attrCount);
7641Array.Copy(_nodes, newNodes, _nodes.Length);
8104Array.Copy(_parsingStatesStack, newParsingStateStack, _parsingStatesStack.Length);
8136private int IncrementalRead(Array array, int index, int count)
9203if (Array.BinarySearch<object>(nameSortedNodeData, defAttrInfo, DtdDefaultAttributeInfoToNodeDataComparer.Instance) >= 0)
System\Xml\Serialization\Types.cs (4)
534AddNonXsdPrimitive(typeof(char), "char", UrtTypes.Namespace, "Char", new XmlQualifiedName("unsignedShort", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.IgnoreDefault);
535AddNonXsdPrimitive(typeof(TimeSpan), "TimeSpan", UrtTypes.Namespace, "TimeSpan", new XmlQualifiedName("duration", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
536AddNonXsdPrimitive(typeof(DateTimeOffset), "dateTimeOffset", UrtTypes.Namespace, "DateTimeOffset", new XmlQualifiedName("dateTime", XmlSchema.Namespace), Array.Empty<XmlSchemaFacet>(), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
669AddNonXsdPrimitive(type, dataTypeName, ns, formatterName, baseTypeName, Array.Empty<XmlSchemaFacet>(), flags);
System\Xml\Serialization\XmlSerializationReader.cs (22)
1049dimensions = Array.Empty<string>();
1344protected Array EnsureArrayIndex(Array? a, int index, Type elementType)
1346if (a == null) return Array.CreateInstance(elementType, 32);
1348Array b = Array.CreateInstance(elementType, a.Length * 2);
1349Array.Copy(a, b, index);
1353protected Array? ShrinkArray(Array? a, int length, Type elementType, bool isNullable)
1358return Array.CreateInstance(elementType, 0);
1361Array b = Array.CreateInstance(elementType, length);
1362Array.Copy(a, b, length);
1533Array array = (Array)f.Source!;
1551private Array? ReadArray(string? typeName, string? typeNs)
1650return Array.CreateInstance(elementType, 0);
1657Array? array = null;
2748item = typeof(Array).FullName!;
2765Writer.Write($"{RaCodeGen.GetReflectionVariable(typeof(Array).FullName!, "0")}[ci , i]");
3124Writer.Write(typeof(Array).FullName);
3432members = Array.Empty<Member>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (7)
229ilg.BeginMethod(typeof(void), "InitIDs", Type.EmptyTypes, Array.Empty<string>(),
347ilg.BeginMethod(typeof(void), "InitCallbacks", Type.EmptyTypes, Array.Empty<string>(),
399Array.Empty<string>(),
644Array.Empty<string>(),
975Array.Empty<string>(),
2667new Type[] { typeof(Array), typeof(int), typeof(Type), typeof(bool) }
2749new Type[] { typeof(Array), typeof(int), typeof(Type) }
System\Xml\Xsl\QIL\QilList.cs (3)
125Array.Copy(_members, membersNew, _count);
130Array.Copy(_members, index, _members, index + 1, _count - index);
146Array.Copy(_members, index + 1, _members, index, _count - index);
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (6)
158void System.Collections.ICollection.CopyTo(Array array, int index)
163Array.Copy(_items, 0, array, index, _size);
335int index = Array.IndexOf(_items, value);
382public void SortByKeys(Array keys)
388Array.Sort(keys, _items, 0, _size);
611Array.Sort(sortArray, 0, Count, comparer);
System\Xml\Xsl\XmlIlGenerator.cs (3)
132MethodInfo methExec = _module.DefineMethod("Execute", typeof(void), Type.EmptyTypes, Array.Empty<string>(), XmlILMethodAttributes.NonUser);
138MethodInfo methRoot = _module.DefineMethod("Root", typeof(void), Type.EmptyTypes, Array.Empty<string>(), methAttrs);
261methInfo = _module!.DefineMethod(ndRef.DebugName!.ToString(), typReturn, Type.EmptyTypes, Array.Empty<string>(), methAttrs);
System.Private.Xml.Linq (10)
System.Reflection.Context (12)
System\Reflection\Context\Projection\ProjectingType.cs (6)
248Array.Copy(methods, 0, members, i, methods.Length); i += methods.Length;
249Array.Copy(constructors, 0, members, i, constructors.Length); i += constructors.Length;
250Array.Copy(properties, 0, members, i, properties.Length); i += properties.Length;
251Array.Copy(events, 0, members, i, events.Length); i += events.Length;
252Array.Copy(fields, 0, members, i, fields.Length); i += fields.Length;
253Array.Copy(nestedTypes, 0, members, i, nestedTypes.Length); i += nestedTypes.Length;
System.Reflection.Emit (6)
System.Reflection.Metadata (10)
System.Reflection.MetadataLoadContext (87)
System.Resources.Extensions (1)
System.Resources.Writer (1)
System.Runtime (1)
System.Runtime.InteropServices (2)
System.Runtime.Numerics (6)
System.Runtime.Serialization.Formatters (44)
System.Security.AccessControl (2)
System.Security.Cryptography (74)
System.Text.Json (11)
System.Text.Json.SourceGeneration (6)
System.Text.RegularExpressions (20)
System\Text\RegularExpressions\RegexRunner.cs (3)
457Array.Copy(runtrack, 0, newtrack, runtrack.Length, runtrack.Length);
470Array.Copy(runstack, 0, newstack, runstack.Length, runstack.Length);
482Array.Copy(runcrawl, 0, newcrawl, runcrawl.Length, runcrawl.Length);
System.Text.RegularExpressions.Generator (4)
System.Threading.Channels (4)
src\libraries\Common\src\System\Collections\Generic\Deque.cs (4)
13private T[] _array = Array.Empty<T>();
127Array.Copy(_array, newArray, _size);
131Array.Copy(_array, _head, newArray, 0, _array.Length - _head);
132Array.Copy(_array, 0, newArray, _array.Length - _head, _tail);
System.Threading.RateLimiting (5)
src\libraries\Common\src\System\Collections\Generic\Deque.cs (4)
13private T[] _array = Array.Empty<T>();
127Array.Copy(_array, newArray, _size);
131Array.Copy(_array, _head, newArray, 0, _array.Length - _head);
132Array.Copy(_array, 0, newArray, _array.Length - _head, _tail);
System.Threading.Tasks.Dataflow (7)
Internal\ImmutableArray.cs (5)
53Array.Copy(_array, newArray, _array.Length);
64int index = Array.IndexOf(_array, item);
72Array.Copy(_array, newArray, index);
73Array.Copy(_array, index + 1, newArray, index, _array.Length - index - 1);
83public bool Contains(T item) { return Array.IndexOf(_array, item) >= 0; }
System.Transactions.Local (3)
System.Web.HttpUtility (1)
System.Windows.Controls.Ribbon (1)
System.Xaml (20)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (5)
1323Array.Copy(_entries, 0, destEntries, 0, _entries.Length);
1341public override int IndexOf(T value) => Array.IndexOf(_entries, value, 0, _count);
1348Array.Copy(_entries, index, _entries, index + 1, _count - index);
1382Array.Copy(_entries, index + 1, _entries, index, numToCopy);
1547Array.Copy(_sourceArray, start, _targetArray, _validItemCount, size);
System\Xaml\Parser\NodeStreamSorter.cs (3)
661Array.Copy(_sortingInfoArray, beginning, temp, 0, length1);
665Array.Copy(_sortingInfoArray, middle, _sortingInfoArray, beginning, length2);
669Array.Copy(temp, 0, _sortingInfoArray, beginning + length2, length1);
System.Xaml.Tests (2)
Templates.Blazor.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
511Array.Clear(keyBytes, 0, keyBytes.Length);
512Array.Clear(pem, 0, pem.Length);
518Array.Clear(keyBytes, 0, keyBytes.Length);
519Array.Clear(pem, 0, pem.Length);
569Array.Clear(bytes, 0, bytes.Length);
597Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Templates.Blazor.WebAssembly.Auth.Tests (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
511Array.Clear(keyBytes, 0, keyBytes.Length);
512Array.Clear(pem, 0, pem.Length);
518Array.Clear(keyBytes, 0, keyBytes.Length);
519Array.Clear(pem, 0, pem.Length);
569Array.Clear(bytes, 0, bytes.Length);
597Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Templates.Blazor.WebAssembly.Tests (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
511Array.Clear(keyBytes, 0, keyBytes.Length);
512Array.Clear(pem, 0, pem.Length);
518Array.Clear(keyBytes, 0, keyBytes.Length);
519Array.Clear(pem, 0, pem.Length);
569Array.Clear(bytes, 0, bytes.Length);
597Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Templates.Mvc.Tests (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
511Array.Clear(keyBytes, 0, keyBytes.Length);
512Array.Clear(pem, 0, pem.Length);
518Array.Clear(keyBytes, 0, keyBytes.Length);
519Array.Clear(pem, 0, pem.Length);
569Array.Clear(bytes, 0, bytes.Length);
597Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
Templates.Tests (10)
src\Shared\CertificateGeneration\CertificateManager.cs (6)
511Array.Clear(keyBytes, 0, keyBytes.Length);
512Array.Clear(pem, 0, pem.Length);
518Array.Clear(keyBytes, 0, keyBytes.Length);
519Array.Clear(pem, 0, pem.Length);
569Array.Clear(bytes, 0, bytes.Length);
597Array.Clear(pemEnvelope, 0, pemEnvelope.Length);
TestExclusionListTasks (6)
UIAutomationClient (13)
MS\Internal\Automation\Misc.cs (12)
79internal static Array CombineArrays(IEnumerable arrays, Type t)
83foreach (Array a in arrays)
88Array combined = Array.CreateInstance(t, totalLength);
91foreach (Array a in arrays)
95Array.Copy(a, 0, combined, pos, l);
104internal static Array RemoveDuplicates(Array a, Type t)
109Array.Sort(a);
134Array a2 = Array.CreateInstance(t, newLength);
136Array.Copy(a, 0, a2, 0, newLength);
UIAutomationClientSideProviders (16)
UIAutomationTypes (7)
System\Windows\Automation\ControlType.cs (5)
67return ControlType.Register(id, programmaticName, stId, Array.Empty<AutomationProperty>(), Array.Empty<AutomationPattern>(), requiredPatternsSets);
74return ControlType.Register(id, programmaticName, stId, requiredProperties, Array.Empty<AutomationPattern>(), new AutomationPattern[0][]);
80return ControlType.Register(id, programmaticName, stId, Array.Empty<AutomationProperty>(), Array.Empty<AutomationPattern>(), new AutomationPattern[0][]);
WasmAppBuilder (14)
WasmBuildTasks (3)
WorkloadBuildTasks (3)
xunit.assert (5)