Skip to content

Commit f854581

Browse files
committed
Rename
1 parent 3483186 commit f854581

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/MongoDB.Bson/ObjectModel/BsonTypeExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ namespace MongoDB.Bson
2323
public static class BsonTypeExtensions
2424
{
2525
/// <summary>
26-
/// Maps a <see cref="BsonType"/> to its corresponding string representation.
26+
/// Maps a <see cref="BsonType"/> to its corresponding server string representation.
2727
/// </summary>
2828
/// <param name="type">The input type to map.</param>
29-
public static string ToStringRepresentation(this BsonType type)
29+
public static string ToServerString(this BsonType type)
3030
{
3131
return type switch
3232
{

src/MongoDB.Driver.Encryption/CsfleSchemaBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private static BsonDocument CreateEncryptDocument(
281281

282282
if (bsonTypes != null)
283283
{
284-
var convertedBsonTypes = bsonTypes.Select(type => type.ToStringRepresentation()).ToList();
284+
var convertedBsonTypes = bsonTypes.Select(type => type.ToServerString()).ToList();
285285

286286
if (convertedBsonTypes.Count == 0)
287287
{

src/MongoDB.Driver/Linq/Linq3Implementation/Ast/AstEnumExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace MongoDB.Driver.Linq.Linq3Implementation.Ast
2121
{
2222
internal static class AstEnumExtensions
2323
{
24-
public static string Render(this BsonType type) => type.ToStringRepresentation();
24+
public static string Render(this BsonType type) => type.ToServerString();
2525

2626
public static string Render(this ByteOrder byteOrder)
2727
{

src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Filters/AstTypeFilterOperation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ public override BsonValue Render()
5252
if (_types.Count == 1)
5353
{
5454
var type = _types[0];
55-
return new BsonDocument("$type", type.ToStringRepresentation());
55+
return new BsonDocument("$type", type.ToServerString());
5656
}
5757
else
5858
{
59-
return new BsonDocument("$type", new BsonArray(_types.Select(type => type.ToStringRepresentation())));
59+
return new BsonDocument("$type", new BsonArray(_types.Select(type => type.ToServerString())));
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)