Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflow Exception on PropertyCollection initialization #42

Open
dust63 opened this issue Feb 5, 2019 · 3 comments
Open

StackOverflow Exception on PropertyCollection initialization #42

dust63 opened this issue Feb 5, 2019 · 3 comments

Comments

@dust63
Copy link

dust63 commented Feb 5, 2019

Hi,

When you initialize a Property Collection with a nested property of the same type of the base object, you got a Stack Overflow exception.

Example object that create a StackOverflowException:

public class PersonManager {

    public string Name{get;set;}

    public List<PersonManager> Managers{get;set;}

    public PersonManager MyBoss {get;set;}

}
@dbelmont
Copy link
Owner

Hi @dust63,

Many thanks for your interest in the project. I ran into that problem a couple of weeks ago while I was fixing another issue.

The good news is that's fixed and available in the release I just published yesterday. Would you mind having a look at that and letting me know if the issue persists or not?

Kind regards,
David

@dust63
Copy link
Author

dust63 commented Mar 7, 2019

I just retry this, and I comfirmed that it's ok.
Wouldn't it be interesting to add a level of depth ? At this time I have an Property collection with 400 properties because it is an entity with relations.

@dbelmont
Copy link
Owner

Hi @dust63,

Thanks for confirming it's ok.
The level of depth is a good idea. I'll work on that.

Thanks,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants