|
@@ -26,6 +26,15 @@ namespace InABox.Clients
|
|
|
|
|
|
public CoreTable Get<T>() => Results[typeof(T).Name];
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// Like <see cref="Get{T}"/>, but calls <see cref="CoreTable.ToObjects{T}"/> on the table.
|
|
|
+ /// </summary>
|
|
|
+ /// <typeparam name="T"></typeparam>
|
|
|
+ /// <returns></returns>
|
|
|
+ public IEnumerable<T> GetObjects<T>()
|
|
|
+ where T: BaseObject, new()
|
|
|
+ => Results[typeof(T).Name].ToObjects<T>();
|
|
|
+
|
|
|
public CoreTable Get(string name) => Results[name];
|
|
|
}
|
|
|
|