views:

1347

answers:

2

What is the purpose of IsReference property in Data contract. How the request and response vary with these property./

+2  A: 

It determines how objects are serialized. MSDN - IsReference Property provides details as well as Interoperable Object References. Also see this weblog that has some examples of the generated XML with the property applied.

Tanner
A: 

Also IsReference does not live in .NET Framework 3.5. So you could get errors when using it with that framework version - it lives only in 4, 3.5 SP1, 3.0.

"Error 297 'System.Runtime.Serialization.DataContractAttribute' does not contain a definition for 'IsReference' "

Andriy Buday