/// <summary> /// 重置默认的映射对象搜索器 /// </summary> /// <param name="finder"></param> public static void ResetLastFinder(ObjectAccessorFinder finder) { if (finder == null) { throw new ArgumentNullException("finder"); } lock (Finders) { Finders[Finders.Count - 1] = finder; } }
/// <summary> /// 新增一个映射对象搜索器 /// </summary> /// <param name="finder"></param> public static void AddFinder(ObjectAccessorFinder finder) { if (finder == null) { throw new ArgumentNullException("finder"); } lock (Finders) { Finders.Insert(Finders.Count - 1, finder); } }