Skip to content

Commit 9a06589

Browse files
authored
DOCSP-47960: Remove ScalarDiscriminator limitation admonition (#497)
1 parent 843ab98 commit 9a06589

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

source/fundamentals/serialization/polymorphic-objects.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ you must explicitly list each class you're looking for:
161161
item.GetType() == typeof(Lion) ||
162162
item.GetType() == typeof(Tiger));
163163

164-
.. note:: OfType<T>() and the is Operator
165-
166-
When checking the type of a scalar discriminator, use the ``Where`` syntax shown in
167-
the preceding code example. If you try to use the ``Aggregate().OfType<T>()`` method,
168-
or if you pass an expression containing the ``is`` operator to the
169-
``Aggregate().Match()`` method, the driver throws an exception.
170-
171164
.. _csharp-discriminator-hierarchical:
172165

173166
HierarchicalDiscriminatorConvention

0 commit comments

Comments
 (0)