DataContract Serialization without DataMember Attribute
问题 I have the following XML generated using a function FreezeAllAccountsForUser. I need to serialize only the following two columns for this function. How can I restrict the serialization to two columns? BankAccountID Status Note: The key point is that the scope of making this restriction should be only within the function FreezeAllAccountsForUser; not global . REFERENCE Serializing IEnumerable Containing Derived classes: Circular Reference Issue XML <ArrayOfBankAccount xmlns:i="http://www.w3