-Code reformat

This commit is contained in:
James Newton-King
2013-10-20 15:08:39 +13:00
parent d03963016e
commit bcd6982419
466 changed files with 71645 additions and 71598 deletions
@@ -30,29 +30,31 @@ using Newtonsoft.Json.Serialization;
namespace Newtonsoft.Json.Tests.TestObjects
{
public class PersonError
{
private List<string> _roles;
public string Name { get; set; }
public int Age { get; set; }
public List<string> Roles
public class PersonError
{
get
{
if (_roles == null)
throw new Exception("Roles not loaded!");
private List<string> _roles;
return _roles;
}
set { _roles = value; }
}
public string Title { get; set; }
public string Name { get; set; }
public int Age { get; set; }
[OnError]
internal void HandleError(StreamingContext context, ErrorContext errorContext)
{
errorContext.Handled = true;
public List<string> Roles
{
get
{
if (_roles == null)
throw new Exception("Roles not loaded!");
return _roles;
}
set { _roles = value; }
}
public string Title { get; set; }
[OnError]
internal void HandleError(StreamingContext context, ErrorContext errorContext)
{
errorContext.Handled = true;
}
}
}
}