Skip to content

Commit 010e7ee

Browse files
committed
CSHARP-3084: Reformat files with new .editorconfig file settings.
1 parent 17e501f commit 010e7ee

File tree

519 files changed

+1048
-1005
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

519 files changed

+1048
-1005
lines changed

src/MongoDB.Bson/BsonUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static DateTime ToDateTimeFromMillisecondsSinceEpoch(long millisecondsSin
8383
millisecondsSinceEpoch > BsonConstants.DateTimeMaxValueMillisecondsSinceEpoch)
8484
{
8585
var message = string.Format(
86-
"The value {0} for the BsonDateTime MillisecondsSinceEpoch is outside the"+
86+
"The value {0} for the BsonDateTime MillisecondsSinceEpoch is outside the" +
8787
"range that can be converted to a .NET DateTime.",
8888
millisecondsSinceEpoch);
8989
throw new ArgumentOutOfRangeException("millisecondsSinceEpoch", message);
@@ -262,4 +262,4 @@ private static bool TryParseHexChar(char c, out int value)
262262
return false;
263263
}
264264
}
265-
}
265+
}

src/MongoDB.Bson/IO/ArrayElementNameAccelerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public byte[] GetElementNameBytes(int index)
116116

117117
if (index < _cachedElementNames.Length)
118118
{
119-
return _cachedElementNames[index];
119+
return _cachedElementNames[index];
120120
}
121121

122122
return CreateElementNameBytes(index);

src/MongoDB.Bson/IO/BsonBinaryWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public override long Position
9797
/// </summary>
9898
public new BsonBinaryWriterSettings Settings
9999
{
100-
get { return (BsonBinaryWriterSettings)base.Settings; }
100+
get { return (BsonBinaryWriterSettings)base.Settings; }
101101
}
102102

103103
// public methods

src/MongoDB.Bson/IO/BsonStreamExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static BsonBinarySubType ReadBinarySubType(this BsonStream stream)
7676
{
7777
throw new ArgumentNullException("stream");
7878
}
79-
79+
8080
var b = stream.ReadByte();
8181
if (b == -1)
8282
{
@@ -96,7 +96,7 @@ public static bool ReadBoolean(this BsonStream stream)
9696
{
9797
throw new ArgumentNullException("stream");
9898
}
99-
99+
100100
var b = stream.ReadByte();
101101
if (b == -1)
102102
{
@@ -213,7 +213,7 @@ public static void WriteBinarySubType(this BsonStream stream, BsonBinarySubType
213213
{
214214
throw new ArgumentNullException("stream");
215215
}
216-
216+
217217
stream.WriteByte((byte)value);
218218
}
219219

@@ -228,7 +228,7 @@ public static void WriteBoolean(this BsonStream stream, bool value)
228228
{
229229
throw new ArgumentNullException("stream");
230230
}
231-
231+
232232
stream.WriteByte(value ? (byte)1 : (byte)0);
233233
}
234234

@@ -243,7 +243,7 @@ public static void WriteBsonType(this BsonStream stream, BsonType value)
243243
{
244244
throw new ArgumentNullException("stream");
245245
}
246-
246+
247247
stream.WriteByte((byte)value);
248248
}
249249

src/MongoDB.Bson/IO/JsonReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ private void ParseBinDataExtendedJsonCanonical(out byte[] bytes, out BsonBinaryS
10821082
}
10831083

10841084
private void ParseBinDataExtendedJsonLegacy(JsonToken nextToken, out byte[] bytes, out BsonBinarySubType subType)
1085-
{
1085+
{
10861086
if (nextToken.Type != JsonTokenType.String)
10871087
{
10881088
var message = string.Format("JSON reader expected a string but found '{0}'.", nextToken.Lexeme);

src/MongoDB.Bson/ObjectModel/BsonBinaryData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public BsonBinaryData(byte[] bytes, BsonBinarySubType subType, GuidRepresentatio
129129
[Obsolete("Use the constructor that also takes a GuidRepresentation instead.")]
130130
public BsonBinaryData(Guid guid)
131131
: this(
132-
guid,
132+
guid,
133133
BsonDefaults.GuidRepresentationMode == GuidRepresentationMode.V2
134134
? BsonDefaults.GuidRepresentation
135135
: throw new InvalidOperationException("This constructor can only be used when BsonDefaults.GuidRepresentationMode is V2."))

src/MongoDB.Bson/ObjectModel/BsonDecimal128.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,4 +347,4 @@ protected override bool OperatorEqualsImplementation(BsonValue rhs)
347347
return this.Equals(rhs);
348348
}
349349
}
350-
}
350+
}

src/MongoDB.Bson/ObjectModel/BsonDouble.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace MongoDB.Bson
2828
#endif
2929
public class BsonDouble : BsonValue, IComparable<BsonDouble>, IEquatable<BsonDouble>
3030
{
31-
#region static
31+
#region static
3232
const int __minPrecreatedValue = -100;
3333
const int __maxPrecreatedValue = 100;
3434
private static readonly BsonDouble[] __precreatedInstances = new BsonDouble[__maxPrecreatedValue - __minPrecreatedValue + 1];

src/MongoDB.Bson/ObjectModel/BsonInt64.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace MongoDB.Bson
2626
#endif
2727
public class BsonInt64 : BsonValue, IComparable<BsonInt64>, IEquatable<BsonInt64>
2828
{
29-
#region static
29+
#region static
3030
const long __minPrecreatedValue = -100L;
3131
const long __maxPrecreatedValue = 100L;
3232
private static readonly BsonInt64[] __precreatedInstances = new BsonInt64[__maxPrecreatedValue - __minPrecreatedValue + 1];
@@ -42,7 +42,7 @@ static BsonInt64()
4242
}
4343
#endregion
4444

45-
// private fields
45+
// private fields
4646
private readonly long _value;
4747

4848
// constructors
@@ -373,7 +373,7 @@ protected override ulong IConvertibleToUInt64Implementation(IFormatProvider prov
373373
return Convert.ToUInt64(_value, provider);
374374
}
375375
#pragma warning restore
376-
376+
377377
/// <summary>
378378
/// Compares this BsonInt32 against another BsonValue.
379379
/// </summary>

src/MongoDB.Bson/ObjectModel/BsonRegularExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public Regex ToRegex()
283283
/// <returns>A string representation of the value.</returns>
284284
public override string ToString()
285285
{
286-
var escaped = (_pattern == "") ? "(?:)" :_pattern.Replace("/", @"\/");
286+
var escaped = (_pattern == "") ? "(?:)" : _pattern.Replace("/", @"\/");
287287
return string.Format("/{0}/{1}", escaped, _options);
288288
}
289289
}

0 commit comments

Comments
 (0)