예제 #1
0
        /// <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;
            }
        }
예제 #2
0
        /// <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);
            }
        }