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