We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 843ab98 commit 9a06589Copy full SHA for 9a06589
source/fundamentals/serialization/polymorphic-objects.txt
@@ -161,13 +161,6 @@ you must explicitly list each class you're looking for:
161
item.GetType() == typeof(Lion) ||
162
item.GetType() == typeof(Tiger));
163
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
171
.. _csharp-discriminator-hierarchical:
172
173
HierarchicalDiscriminatorConvention
0 commit comments