public List <TimeEvent> GetTimeLineEvents(uint id) { List <TimeEvent> get_value = new List <TimeEvent>(); using (SqliteDataReader reader = LocalDB.instance.ExecuteReader("select * from " + m_FileName + " where owner = " + id)) { while (true) { if (!reader.Read()) { break; } Assembly assembly = Assembly.GetExecutingAssembly(); // 获取当前程序集 TimeEvent time_event = assembly.CreateInstance("Code.SkillSystem.Runtime." + ((TimeEventType)((int)reader[PropertiesKey.TIMELINE_EVENT_TYPE])).ToString()) as TimeEvent; time_event.Convert(reader); get_value.Add(time_event); } } return(get_value); }