Beispiel #1
0
 public BsonDocument SetArray(int idx, BsonArray val)
 {
     return base.SetArray(idx.ToString(), val);
 }
Beispiel #2
0
 public BsonDocument SetArray(string key, BsonArray val)
 {
     return(SetBsonValue(new BsonValue(BsonType.ARRAY, key, val)));
 }
Beispiel #3
0
 public BsonArray(BsonArray[] arr)
 {
     for (var i = 0; i < arr.Length; ++i)
     {
         SetArray(i, arr[i]);
     }
 }
Beispiel #4
0
 /// <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));
 }