/// <summary>
 /// Freezes the settings.
 /// </summary>
 /// <returns>The frozen settings.</returns>
 public MongoGridFSSettings Freeze()
 {
     if (!_isFrozen)
     {
         _writeConcern   = _writeConcern.FrozenCopy();
         _frozenHashCode = GetHashCode();
         _isFrozen       = true;
     }
     return(this);
 }