File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -286,16 +286,16 @@ private BsonSerializationInfo VisitElementAt(MethodCallExpression node)
286
286
287
287
private static BsonSerializationInfo CombineSerializationInfo ( BsonSerializationInfo baseInfo , BsonSerializationInfo newInfo )
288
288
{
289
- string elementName = string . Empty ;
290
- if ( ! string . IsNullOrEmpty ( baseInfo . ElementName ) && ! string . IsNullOrEmpty ( newInfo . ElementName ) )
289
+ string elementName = null ;
290
+ if ( baseInfo . ElementName != null && newInfo . ElementName != null )
291
291
{
292
292
elementName = baseInfo . ElementName + "." + newInfo . ElementName ;
293
293
}
294
- else if ( ! string . IsNullOrEmpty ( baseInfo . ElementName ) )
294
+ else if ( baseInfo . ElementName != null )
295
295
{
296
296
elementName = baseInfo . ElementName ;
297
297
}
298
- else if ( ! string . IsNullOrEmpty ( newInfo . ElementName ) )
298
+ else if ( newInfo . ElementName != null )
299
299
{
300
300
elementName = newInfo . ElementName ;
301
301
}
You can’t perform that action at this time.
0 commit comments