Plugin settings - Fixed settings not being singletons

Data model visualization - Order properties by their declaration
This commit is contained in:
SpoinkyNL committed 2020-10-13 23:22:26 +02:00
1 parent ef62e30c6f
commit c93a743e24
5 files changed
+40 -24

No files matched your search

@@ -136,7 +136,7 @@ namespace Artemis.Core.DataModelExpansions
/// <typeparam name="T">The type of data model you expect</typeparam>
/// <param name="key">The unique key of the dynamic data model</param>
/// <returns>If found, the dynamic data model otherwise <c>null</c></returns>
public T DynamicChild<T>(string key) where T : DataModel
public T? DynamicChild<T>(string key) where T : DataModel
{
_dynamicDataModels.TryGetValue(key, out DataModel value);
return value as T;