-Fixed DataTable and DataColumn names not being modified by CamelCasePropertyNamesContractResolver

This commit is contained in:
JamesNK
2011-08-03 00:50:44 +00:00
parent 18c9400054
commit 44ab7f71df
10 changed files with 106 additions and 10 deletions
@@ -792,7 +792,7 @@ namespace Newtonsoft.Json.Serialization
} while (!exit && reader.Read());
if (contract.ISerializableCreator == null)
throw new JsonSerializationException("ISerializable type '{0}' does not have a valid constructor.".FormatWith(CultureInfo.InvariantCulture, objectType));
throw new JsonSerializationException("ISerializable type '{0}' does not have a valid constructor. To correctly implement ISerializable a constructor that takes SerializationInfo and StreamingContext parameters should be present.".FormatWith(CultureInfo.InvariantCulture, objectType));
object createdObject = contract.ISerializableCreator(serializationInfo, Serializer.Context);