KnownTypeAttribute is an attribute which allows specifying the types that should be included during the process of deserialization. The users are using KnownTypeAttribute only when they want to accept the service and return an inherited type.

BY Best Interview Question ON 14 Sep 2019