| C# | Visual Basic | Visual C++ |
public override ILBaseArray CreateReference()
Public Overrides Function CreateReference As ILBaseArray
public: virtual ILBaseArray^ CreateReference() override
This function is mainly needed for ILCell. Elements of ILCells given back must be detached from their originals in order not to overwrite them on write access. Since ILCell may store any types of arrays (ILBaseArray's) and the actual type is not known, ILBaseArrays must be capable of creating a copy of themself. For generic ILArray's this is done in the CreateReference()()() member.
The actual storage type of the object returned depends on the setting of the member MinimumRefDimensions. If the number of dimensions of this array is larger or equal its numer, the object returned will be a reference array. Otherwise it will be a physical array anyway. This is especially true for scalars and vectors.