Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Opt in member serialization #131

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

russcam
Copy link

@russcam russcam commented Nov 21, 2018

This PR adds support for

  • attributing a type with DataContractAttribute to signal that only type members explicitly attributed with DataMemberAttribute should be included for serialization
  • attributing an interface with InterfaceDataContractAttribute to signal that only type members explicitly attributed with DataMemberAttribute should be included for serialization. DataContractAttribute cannot be applied to interfaces, but serializing a concrete instance of a type that implements an interface by using the interface is a valid use case.

This commit adds support for attributing a type
with DataContractAttribute to signal that only
type members explicitly attributed with DataMemberAttribute
should be included for serialization
This commit adds unit tests for serialization
behaviour when the type is attributed with
DataContractAttribute
This commit adds an InterfaceDataContractAttribute that can be
applied to interfaces to serialize only those members
explicitly attributed with DataMemberAttribute. DataContractAttribute
cannot be applied to interfaces.
russcam added a commit to elastic/elasticsearch-net that referenced this pull request Nov 21, 2018
This branch includes both the following PRS opened against upstream
neuecc/Utf8Json#130
neuecc/Utf8Json#131
Mpdreamz pushed a commit to elastic/elasticsearch-net that referenced this pull request Mar 16, 2019
This branch includes both the following PRS opened against upstream
neuecc/Utf8Json#130
neuecc/Utf8Json#131
Mpdreamz pushed a commit to elastic/elasticsearch-net that referenced this pull request Mar 25, 2019
This branch includes both the following PRS opened against upstream
neuecc/Utf8Json#130
neuecc/Utf8Json#131
Mpdreamz pushed a commit to elastic/elasticsearch-net that referenced this pull request Mar 25, 2019
This branch includes both the following PRS opened against upstream
neuecc/Utf8Json#130
neuecc/Utf8Json#131
Mpdreamz pushed a commit to elastic/elasticsearch-net that referenced this pull request Mar 29, 2019
This branch includes both the following PRS opened against upstream
neuecc/Utf8Json#130
neuecc/Utf8Json#131
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant