using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace Apewer
{
/// 使用 Json.Parse 方法将实例转为 Json 的检查器。
/// 当实例实现 IToJson 时,此接口中的方法可能无效。
public interface IToJsonChecker
{
/// 转换为 Json 时,包含此元素。
public bool WithItemInJson(IList list, object item);
/// 转换为 Json 时,包含此元素。
public bool WithPropertyInJson(object entity, PropertyInfo property, object value);
/// 转换为 Json 时,包含此元素。
public bool WithPropertyInJson(IDictionary dictionary, string key, object value);
}
}