14 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.DotNet.XUnitAssert.Tests (8)
EqualityAssertsTests.cs (8)
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 });
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
292/// <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)
689return Array.CreateInstance(elementType, lengths, bounds);