void ReadISerializable(ClassDataContract classContract) { ConstructorInfo ctor = classContract.UnderlyingType.GetConstructor(Globals.ScanAllMembers, null, JsonFormatGeneratorStatics.SerInfoCtorArgs, null); if (ctor == null) { throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.SerializationInfo_ConstructorNotFound, DataContract.GetClrTypeFullName(classContract.UnderlyingType)))); } context.ReadSerializationInfo(xmlReader, classContract.UnderlyingType); ctor.Invoke(objectLocal, new object [] { context.GetStreamingContext() }); }