DataMember(IsRequired = true) depending on the value of other datamember RRS feed

  • Question

  • Hi All,

    I am new to WCF and serialization. I have a question regarding a datamember attribute isrequired.

    I have couple of datamembers

    dm1, dm2 , dm3

    I want to set IsRequired = true for dm2 only in case dm1 has a specific value.

    Is it possible?


    Tuesday, July 4, 2017 2:55 PM

All replies