From a6e777116fd25eebcfcbd3a1d71db5bab5177f8b Mon Sep 17 00:00:00 2001 From: Michael Morisi Date: Thu, 27 Feb 2025 15:14:56 -0500 Subject: [PATCH] DOCSP-47960: Remove ScalarDiscriminator limitation admonition --- source/fundamentals/serialization/polymorphic-objects.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/fundamentals/serialization/polymorphic-objects.txt b/source/fundamentals/serialization/polymorphic-objects.txt index 07a4dc92..ccef961d 100644 --- a/source/fundamentals/serialization/polymorphic-objects.txt +++ b/source/fundamentals/serialization/polymorphic-objects.txt @@ -161,13 +161,6 @@ you must explicitly list each class you're looking for: item.GetType() == typeof(Lion) || item.GetType() == typeof(Tiger)); -.. note:: OfType() and the is Operator - - When checking the type of a scalar discriminator, use the ``Where`` syntax shown in - the preceding code example. If you try to use the ``Aggregate().OfType()`` method, - or if you pass an expression containing the ``is`` operator to the - ``Aggregate().Match()`` method, the driver throws an exception. - .. _csharp-discriminator-hierarchical: HierarchicalDiscriminatorConvention