File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
MongoDB.Driver.Encryption
MongoDB.Driver/Linq/Linq3Implementation/Ast Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ namespace MongoDB.Bson
23
23
public static class BsonTypeExtensions
24
24
{
25
25
/// <summary>
26
- /// Maps a <see cref="BsonType"/> to its corresponding string representation.
26
+ /// Maps a <see cref="BsonType"/> to its corresponding server string representation.
27
27
/// </summary>
28
28
/// <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 )
30
30
{
31
31
return type switch
32
32
{
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ private static BsonDocument CreateEncryptDocument(
281
281
282
282
if ( bsonTypes != null )
283
283
{
284
- var convertedBsonTypes = bsonTypes . Select ( type => type . ToStringRepresentation ( ) ) . ToList ( ) ;
284
+ var convertedBsonTypes = bsonTypes . Select ( type => type . ToServerString ( ) ) . ToList ( ) ;
285
285
286
286
if ( convertedBsonTypes . Count == 0 )
287
287
{
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ namespace MongoDB.Driver.Linq.Linq3Implementation.Ast
21
21
{
22
22
internal static class AstEnumExtensions
23
23
{
24
- public static string Render ( this BsonType type ) => type . ToStringRepresentation ( ) ;
24
+ public static string Render ( this BsonType type ) => type . ToServerString ( ) ;
25
25
26
26
public static string Render ( this ByteOrder byteOrder )
27
27
{
Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ public override BsonValue Render()
52
52
if ( _types . Count == 1 )
53
53
{
54
54
var type = _types [ 0 ] ;
55
- return new BsonDocument ( "$type" , type . ToStringRepresentation ( ) ) ;
55
+ return new BsonDocument ( "$type" , type . ToServerString ( ) ) ;
56
56
}
57
57
else
58
58
{
59
- return new BsonDocument ( "$type" , new BsonArray ( _types . Select ( type => type . ToStringRepresentation ( ) ) ) ) ;
59
+ return new BsonDocument ( "$type" , new BsonArray ( _types . Select ( type => type . ToServerString ( ) ) ) ) ;
60
60
}
61
61
}
62
62
}
You can’t perform that action at this time.
0 commit comments