Class to help serialize and deserialize arrays. Arrays need the following methods Count(), Add(), Clear().true This class allows these methods to be specified externally to the collection.
More...
|
| virtual int | Count () |
| | Return the number of elements in the array.
|
| virtual void | Add (object o) |
| | Add an element to the array.
|
| virtual void | Clear () |
| | Clear the array.
|
| | ArrayHelper (IEnumerable enumerable) |
| | Constructor.
|
|
|
static Type | DefaultType [get, set] |
| | Collection type to apply by default to all array objects. If not set this defaults to a generic List.
|
|
IEnumerable | Enumerable [get, set] |
| | The array.
|
|
virtual Type | ArrayType [get] |
| | Type of the array to create when deserializing.
|
Class to help serialize and deserialize arrays. Arrays need the following methods Count(), Add(), Clear().true This class allows these methods to be specified externally to the collection.
◆ ArrayHelper()
| Avro.Reflect.ArrayHelper.ArrayHelper |
( |
IEnumerable | enumerable | ) |
|
|
inline |
Constructor.
- Parameters
-
| enumerable | Enumerable to initialize this helper with. |
◆ Add()
| virtual void Avro.Reflect.ArrayHelper.Add |
( |
object | o | ) |
|
|
inlinevirtual |
Add an element to the array.
- Parameters
-
| o | Element to add to the array. |
◆ Clear()
| virtual void Avro.Reflect.ArrayHelper.Clear |
( |
| ) |
|
|
inlinevirtual |
◆ Count()
| virtual int Avro.Reflect.ArrayHelper.Count |
( |
| ) |
|
|
inlinevirtual |
Return the number of elements in the array.
The documentation for this class was generated from the following file:
- src/apache/main/Reflect/ArrayHelper.cs