-Changed serializing ISerializable types under partial trust to error to fix security issue -Fixed LinqBridge collision error in .NET 2.0 by moving types to a different namespace -Fixed JObject.Keys error when object has no items
35 lines
765 B
C#
35 lines
765 B
C#
using System;
|
|
|
|
namespace Newtonsoft.Json.Tests.TestObjects
|
|
{
|
|
public class PublicParametizedConstructorWithPropertyNameConflict
|
|
{
|
|
private readonly int _value;
|
|
|
|
public PublicParametizedConstructorWithPropertyNameConflict(string name)
|
|
{
|
|
_value = Convert.ToInt32(name);
|
|
}
|
|
|
|
public int Name
|
|
{
|
|
get { return _value; }
|
|
}
|
|
}
|
|
|
|
public class PublicParametizedConstructorWithPropertyNameConflictWithAttribute
|
|
{
|
|
private readonly int _value;
|
|
|
|
public PublicParametizedConstructorWithPropertyNameConflictWithAttribute([JsonProperty("name")]string nameParameter)
|
|
{
|
|
_value = Convert.ToInt32(nameParameter);
|
|
}
|
|
|
|
public int Name
|
|
{
|
|
get { return _value; }
|
|
}
|
|
}
|
|
}
|