-JsonConverterAttribute now allowed on constructor parameters -JsonPropertyAttribute now allowed on constructor parameters
23 lines
481 B
C#
23 lines
481 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Newtonsoft.Json.Tests.TestObjects
|
|
{
|
|
public class PublicParametizedConstructorWithNonPropertyParameterTestClass
|
|
{
|
|
private readonly string _name;
|
|
|
|
public PublicParametizedConstructorWithNonPropertyParameterTestClass(string nameParameter)
|
|
{
|
|
_name = nameParameter;
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return _name; }
|
|
}
|
|
}
|
|
}
|