11 references to CreateInstance
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (3)
ObjectFormatterTests.cs (3)
429Array x = Array.CreateInstance(typeof(Object), lengths: new int[] { 2, 3 }, lowerBounds: new int[] { 2, 9 }); 433Array y = Array.CreateInstance(typeof(Object), lengths: new int[] { 1, 1 }, lowerBounds: new int[] { 0, 0 }); 437Array z = Array.CreateInstance(typeof(Object), lengths: new int[] { 0, 0 }, lowerBounds: new int[] { 0, 0 });
Microsoft.CodeAnalysis.UnitTests (1)
Collections\List\ICollection.NonGeneric.Tests.cs (1)
203Array arr = Array.CreateInstance(typeof(object), new int[1] { count }, new int[1] { 2 });
Microsoft.Private.Windows.Polyfills.Tests (1)
System\TypeExtensionsTests.cs (1)
133Type rank1General = Array.CreateInstance(typeof(int), [1], [1]).GetType();
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
293/// <remarks>When the array type is readily available, this method should be preferred over <see cref="CreateInstance(Type, int[], int[])"/>, as it has
System.Private.Windows.Core (1)
Windows\Win32\System\Variant\VARIANT.cs (1)
697return Array.CreateInstance(elementType, lengths, bounds);
System.Private.Windows.Core.Tests (2)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (2)
391Array value = Array.CreateInstance(typeof(uint), lengths: [2, 3], lowerBounds: [1, 2]); 676Array value = Array.CreateInstance(typeof(uint), lengths: [2, 3], lowerBounds: [1, 2]);
System.Windows.Forms.Tests (2)
misc\CollectionHelperTests.cs (1)
50var target = Array.CreateInstance(typeof(double), [3], [2]);
System\Windows\Forms\ClipboardTests.cs (1)
763Array value = Array.CreateInstance(typeof(uint), lengths: [2, 3], lowerBounds: [1, 2]);