14 references to UnsafeCreateInstance
mscorlib (14)
system\attribute.cs (1)
441
return (Attribute[])Array.
UnsafeCreateInstance
(elementType, elementCount);
system\collections\arraylist.cs (3)
775
Array array = Array.
UnsafeCreateInstance
(type, _size);
1133
Array array = Array.
UnsafeCreateInstance
(type, _list.Count);
2531
Array array = Array.
UnsafeCreateInstance
(type, _baseSize);
system\defaultbinder.cs (6)
317
objs[lastPos] = Array.
UnsafeCreateInstance
(paramArrayTypes[0], 1);
333
objs[i] = Array.
UnsafeCreateInstance
(paramArrayTypes[0], 0); // create an empty array for the
347
objs[paramArrayPos] = Array.
UnsafeCreateInstance
(paramArrayTypes[0], args.Length - paramArrayPos);
396
objs[lastPos] = Array.
UnsafeCreateInstance
(paramArrayTypes[currentMin], 1);
413
objs[i] = Array.
UnsafeCreateInstance
(paramArrayTypes[currentMin], 0);
429
objs[paramArrayPos] = Array.
UnsafeCreateInstance
(paramArrayTypes[currentMin], args.Length - paramArrayPos);
system\reflection\customattribute.cs (1)
2094
return (object[])Array.
UnsafeCreateInstance
(elementType, elementCount);
system\rttype.cs (2)
4086
Array ret = Array.
UnsafeCreateInstance
(this, values.Length);
5729
Object[] newArray = (Object[])Array.
UnsafeCreateInstance
(wrapperType, numElems);
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (1)
734
pr.PRnewObj = Array.
UnsafeCreateInstance
(pr.PRarrayElementType, pr.PRlengthA[0]);