Constructor BsonArray
BsonArray()
Initializes a new instance of the BsonArray class.
public BsonArray()
BsonArray(IEnumerable<bool>)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable<bool> values)
Parameters
valuesIEnumerable<bool>A list of values to add to the array.
BsonArray(IEnumerable<BsonValue>)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable<BsonValue> values)
Parameters
valuesIEnumerable<BsonValue>A list of values to add to the array.
BsonArray(IEnumerable<DateTime>)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable<DateTime> values)
Parameters
valuesIEnumerable<DateTime>A list of values to add to the array.
BsonArray(IEnumerable<double>)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable<double> values)
Parameters
valuesIEnumerable<double>A list of values to add to the array.
BsonArray(IEnumerable<int>)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable<int> values)
Parameters
valuesIEnumerable<int>A list of values to add to the array.
BsonArray(IEnumerable<long>)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable<long> values)
Parameters
valuesIEnumerable<long>A list of values to add to the array.
BsonArray(IEnumerable<ObjectId>)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable<ObjectId> values)
Parameters
valuesIEnumerable<ObjectId>A list of values to add to the array.
BsonArray(IEnumerable<string>)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable<string> values)
Parameters
valuesIEnumerable<string>A list of values to add to the array.
BsonArray(IEnumerable)
Initializes a new instance of the BsonArray class.
public BsonArray(IEnumerable values)
Parameters
valuesIEnumerableA list of values to add to the array.
BsonArray(int)
Initializes a new instance of the BsonArray class.
public BsonArray(int capacity)
Parameters
capacityintThe initial capacity of the array.