Skip to content

Commit 5742541

Browse files
committed
Fixed class
1 parent 2cc6a8d commit 5742541

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/MongoDB.Bson/Serialization/Conventions/StandardDiscriminatorConvention.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ public Type GetActualType(IBsonReader bsonReader, Type nominalType, IBsonSeriali
105105
if (bsonType == BsonType.Document)
106106
{
107107
// ensure KnownTypes of nominalType are registered (so IsTypeDiscriminated returns correct answer)
108-
domain.EnsureKnownTypesAreRegistered(nominalType); //TODO ??
108+
(domain as IBsonSerializationDomainInternal)!.EnsureKnownTypesAreRegistered(nominalType); //TODO Should we move Ensure... to the public interface?
109109

110110
// we can skip looking for a discriminator if nominalType has no discriminated sub types
111-
if (domain.IsTypeDiscriminated(nominalType)) //TODO ??
111+
if (domain.IsTypeDiscriminated(nominalType))
112112
{
113113
var bookmark = bsonReader.GetBookmark();
114114
bsonReader.ReadStartDocument();

src/MongoDB.Bson/Serialization/IBsonSerializationDomain.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ void Serialize(
293293

294294
internal interface IBsonSerializationDomainInternal : IBsonSerializationDomain
295295
{
296-
297296
/// <summary>
298297
/// //TODO
299298
/// </summary>

0 commit comments

Comments
 (0)