コード例 #1
0
        /// <summary>
        /// 泛型值组
        /// </summary>
        public static object[] GetValues(this object obj)
        {
            var      type = obj.GetType();
            Delegate func;

            lock (SyncRoot)
            {
                if (!GetValuesFunc.TryGetValue(type, out func))
                {
                    func = ValueBuilder.GetValuesFunc(type);
                    GetValuesFunc.Add(type, func);
                }
            }
            return(((Func <object, object[]>)func)(obj));
        }
コード例 #2
0
 public List <DateModel> GetValues()
 {
     return(GetValuesFunc?.Invoke(Well, ListName, PropertyXName, PropertyYName, DisplayYName));
 }