Class MaterializedOnDemandBsonArray
Represents a BSON array that is not materialized until you start using it.
[BsonSerializer(typeof(MaterializedOnDemandBsonArray.MaterializedOnDemandBsonArraySerializer))]
public abstract class MaterializedOnDemandBsonArray : BsonArray, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonArray>, IEquatable<BsonArray>, IList<BsonValue>, ICollection<BsonValue>, IEnumerable<BsonValue>, IEnumerable, IDisposable
- Inheritance
-
Materialized
OnDemand Bson Array
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
- Materialized
OnDemand Bson Array() Initializes a new instance of the Materialized
OnDemand class.Bson Array
Properties
- Capacity
Gets or sets the total number of elements the internal data structure can hold without resizing.
- Count
Gets the count of array elements.
- Is
Disposed Gets a value indicating whether this instance is disposed.
- Is
Materialized Gets a value indicating whether this instance is materialized.
- this[int]
Gets or sets a value by position.
- Raw
Values Gets the array elements as raw values (see BsonValue.RawValue).
- Values
Gets the array elements.
Methods
- Add(Bson
Value) Adds an element to the array.
- AddRange(IEnumerable<BsonValue>)
Adds multiple elements to the array.
- AddRange(IEnumerable<ObjectId>)
Adds multiple elements to the array.
- AddRange(IEnumerable<bool>)
Adds multiple elements to the array.
- AddRange(IEnumerable<DateTime>)
Adds multiple elements to the array.
- AddRange(IEnumerable<double>)
Adds multiple elements to the array.
- AddRange(IEnumerable<int>)
Adds multiple elements to the array.
- AddRange(IEnumerable<long>)
Adds multiple elements to the array.
- AddRange(IEnumerable<string>)
Adds multiple elements to the array.
- Add
Range(IEnumerable) Adds multiple elements to the array.
- Clear()
Clears the array.
- Clone()
Creates a shallow clone of the array (see also DeepClone).
- Compare
To(Bson Array) Compares the array to another array.
- Compare
To(Bson Value) Compares the array to another BsonValue.
- Contains(Bson
Value) Tests whether the array contains a value.
- Copy
To(Bson Value[], int) Copies elements from this array to another array.
- Copy
To(object[], int) Copies elements from this array to another array as raw values (see BsonValue.RawValue).
- Deep
Clone() Creates a deep clone of the array (see also Clone).
- Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- Dispose(bool)
Releases unmanaged and - optionally - managed resources.
- Equals(object)
Determines whether the specified object, is equal to this instance.
- Get
Enumerator() Gets an enumerator that can enumerate the elements of the array.
- Get
Hash Code() Gets the hash code.
- Index
Of(Bson Value) Gets the index of a value in the array.
- Index
Of(Bson Value, int) Gets the index of a value in the array.
- Index
Of(Bson Value, int, int) Gets the index of a value in the array.
- Insert(int,
Bson Value) Inserts a new value into the array.
- Materialize()
Materializes the BsonArray.
- Materialize
Completed() Informs subclasses that the Materialize process completed so they can free any resources related to the unmaterialized state.
- Remove(Bson
Value) Removes the first occurrence of a value from the array.
- Remove
At(int) Removes an element from the array.
- Throw
IfDisposed() Throws if disposed.
- To
Array() Converts the BsonArray to an array of BsonValues.
- To
List() Converts the BsonArray to a list of BsonValues.
- To
String() Returns a string representation of the array.