ObjectListExtensions.OfType should ignore null values #647
Labels
bitesize!
breaking change
This issue/commit causes a breaking change, and requires a major version upgrade
Milestone
Concerning the extension method
ObjectListExtensions.OfType
in the Hl7.Fhir.Support library:OfType<T>
with same behavior out of the box?OfType<T>
method uses theis
operator, which automatically skips/excludesnull
values but includes subclasses. The custom method compares runtime types, which throws an exception fornull
values and excludes subclasses.Suggestions:
is
operator)The text was updated successfully, but these errors were encountered: