SerializationReaderReadObjectArray Method (Type) |
Returns an object[] or null from the stream.
The returned array will be typed according to the specified element type
and the resulting array can be cast to the expected type.
e.g.
string[] myStrings = (string[]) reader.ReadObjectArray(typeof(string));
An exception will be thrown if any of the deserialized values cannot be
cast to the specified elementType.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public Object[] ReadObjectArray(
Type elementType
)
Public Function ReadObjectArray (
elementType As Type
) As Object()
Parameters
- elementType
- Type: SystemType
The Type of the expected array elements. null will return a plain object[].
Return Value
Type:
ObjectAn object[] instance.
See Also