public BsonDocument SetArray(int idx, BsonArray val) { return base.SetArray(idx.ToString(), val); }
public BsonDocument SetArray(string key, BsonArray val) { return(SetBsonValue(new BsonValue(BsonType.ARRAY, key, val))); }
public BsonArray(BsonArray[] arr) { for (var i = 0; i < arr.Length; ++i) { SetArray(i, arr[i]); } }
/// <summary> /// Sets <see cref="BsonArray"/> value at specified position. /// </summary> /// <param name="index">Index to place value at</param> /// <param name="value">An instance of <see cref="BsonArray"/></param> /// <returns>Returns itself</returns> public BsonDocument SetArray(int index, BsonArray value) { return(SetArray(index.ToString(), value)); }