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
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 {
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments