/// <summary> /// Creates a deep clone of the element (see also Clone). /// </summary> /// <returns>A deep clone of the element.</returns> public BsonElement DeepClone() { var clone = new BsonElement(); clone._name = _name; clone._value = _value.DeepClone(); return(clone); }
/// <summary> /// Creates a deep clone of the element (see also Clone). /// </summary> /// <returns>A deep clone of the element.</returns> public BsonElement DeepClone() { return(new BsonElement(_name, _value.DeepClone())); }