>>
I have been receiving exceptions for the overridden Equals method in
this class.
<<
What exception have you been receiving?
> which fails the condition obj == null.
How is that failing? You mean an exception occurs or the condition returns false (which I think is normal). I can't see an issue right away from reading your Equals implementations.
>>
The other greater problem is that, the list of CLocationHierarchy is
not exported to string the way CLocation is. If I have 5 objects of
CLocationHierarchy in CDictionaryResponse, then the json string shows
'CLocationHierarchy' 5 times and not the actual values
<<
If Jayrock does not know how to export a type, like your CLocationHierarchy, it resorts to simply calling ToString on the instance of the type and that's what you're seeing in the output. You can tell Jayrock how to export a type by registering an exporter. When you don't do that, however, it tries to export a type using a generic scheme subject to a few conditions:
1. The type is public
2. The type is not a primitive type
3. The type has an default constructor (one that takes no arguments)
4. The type has one or more read/write properties
5. The type is anonymous (C# 3)
You CLocationHierarchy is failing the 3rd condition. If you add a default constructor, you should be fine.
> Could I have access to how to start kind of page on JayRock ?
Not sure I understand what you mean here. Could you clarify further?