/// <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)); }
public List <DateModel> GetValues() { return(GetValuesFunc?.Invoke(Well, ListName, PropertyXName, PropertyYName, DisplayYName)); }