System.Xml.Serialization.XmlSerializationReader.EnsureArrayIndex Method

Ensures that a given array, or a copy, is large enough to contain a specified index.

Syntax

protected Array EnsureArrayIndex (Array a, int index, Type elementType)

Parameters

a
The Array that is being checked.
index
The required index.
elementType
The Type of the array's elements.

Returns

The existing Array, if it is already large enough; otherwise, a new, larger array that contains the original array's elements.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0