Unknown identifier “DataContractSerializer”

_sky_

New Member
I am in total confusion. I am learning to use DataContractSerializer class by following the example and my compiler keeps saying that it doesn't exist. Isn't DataContractSerializer in System.Runtime.Serialization namespace? Or do you also have to include the reference to the namespace in your project along with its uses clause?Here is the code:\[code\]var theSerial := new DataContractSerializer(typeof(sb));\[/code\]sb is a record.Thanks in advance,
 
Back
Top