I had a similar problem, and although this may not be the solution for your case above, I hope this helps someone else.
I had to refer to a class written by someone else that looked like this:
public class ItemPrice { public bool sucessIndicator { get { return sucessIndicator; } set { sucessIndicator = value; } } public string productCode { get { return productCode; } set { productCode = value; } } public string description { get { return description; } set { description = value; } } public double price { get { return price; } set { price = value; } } }
At first glance, this looks fine ... until you notice that each property refers to it independently, and not to a private user.
So:
public string description { get { return description; } set { description = value; } }
refers to it recursively and throws an exception that was not shown to me in VS, even though all exceptions were thrown. It just stopped debugging without warning.
The solution, of course, was to change it as follows:
public string description { get; set; }
Hope this helps someone.
Ghlouw
source share