29 using System.Collections.Generic;
31 using System.Reflection;
34 using OpenSim.Framework;
37 namespace OpenSim.Data.
Null
45 protected List<T> Get<T>(
string[] fields,
string[] vals, List<T> inputEntities)
47 List<T> entities = inputEntities;
49 for (
int i = 0; i < fields.Length; i++)
55 FieldInfo fi = typeof(T).GetField(fields[i]);
57 throw new NotImplementedException(
string.Format(
"No field {0} for val {1}", fields[i], vals[i]));
59 return fi.GetValue(e).ToString() == vals[i];
Not a proper generic data handler yet - probably needs to actually store the data as well instead of ...