-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
18 lines
372 B
C#
18 lines
372 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Newtonsoft.Json.Tests.TestObjects
|
|
{
|
|
public class Car
|
|
{
|
|
// included in JSON
|
|
public string Model { get; set; }
|
|
public DateTime Year { get; set; }
|
|
public List<string> Features { get; set; }
|
|
|
|
// ignored
|
|
[JsonIgnore]
|
|
public DateTime LastModified { get; set; }
|
|
}
|
|
}
|