i have the following class
public class User
{
private User _createdBy;
public User CreatedBy
{
get { ... }
set { ... }
}
}
when the webservice tries to serialize this object it gets stuck in an endless loop.
is there a better solution than marking it with the [XmlIgnoreAttribute] attribute?
-
-
devnull wrote:i have the following class
public class User
{
private User _createdBy;
public User CreatedBy
{
get { ... }
set { ... }
}
}
when the webservice tries to serialize this object it gets stuck in an endless loop.
I aways get that when I accidentally do
public User CreatedBy
{
set { CreatedBy = value; }
}
instead of
public User CreatedBy
{
set { _createdBy = value; }
}
but then I am a bit thick..
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.