I run sgen
against my assembly with a metric ton of types. I want to exclude 2 types from serialization. I don't seem to be able to find a way to do it.
I see that sgen
has a /type
switch to specify a specific type, but nothing to exclude a specific type.
Is there a way to exclude specific types from serialization?