You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class ModelWithSelfReferenceProp
{
public ModelWithSelfReferenceProp()
{
RightNow = DateTime.Now;
}
public DateTimeOffset RightNow { get; }
}
[Fact]
public void TestShouldNotThrowError()
{
var model = new ModelWithSelfReferenceProp();
JsonMapper.ToJson(model);
Assert.NotNull(model);
}
Max allowed object depth reached while trying to export from type System.DateTimeOffset