Exemplo n.º 1
0
 /// <summary>
 /// Adds multiple elements to the array.
 /// </summary>
 /// <param name="values">A list of values to add to the array.</param>
 /// <returns>The array (so method calls can be chained).</returns>
 public BsonArray AddRange(IEnumerable <long> values)
 {
     if (values != null)
     {
         foreach (var value in values)
         {
             this.values.Add(BsonInt64.Create(value));
         }
     }
     return(this);
 }
Exemplo n.º 2
0
 public static dynamic ToDynamic(this BsonInt64 bsonInt64) => bsonInt64.Value;