class Bar
{
public int B { get; }
public int A { get; set; }
public int R { get; set; }
}
class Foo
{
public int SomeInt { get; }
public int SomeOtherInt { get; set; }
public Bar Child { get; set; }
}
protected override List<MemberInfo> GetSerializableMembers(Type objectType)
{
var members = base.GetSerializableMembers(objectType).Where(
m => m.MemberType == MemberTypes.Property);
return members.Where(member => ((PropertyInfo)member).CanRead && ((PropertyInfo)member).CanWrite).ToList();
}
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have never used Json.Net before RavenDB. I will research the issue as a Json.Net one, not RavenDB. Thanks.
--