Condition VMs - Simplification WIPpepepepe

This commit is contained in:
SpoinkyNL committed 2020-10-08 22:21:17 +02:00
1 parent 805cdc6782
commit 94bde1fe38
11 files changed
+73 -103

No files matched your search

@@ -137,10 +137,12 @@ namespace Artemis.Core.DataModelExpansions
return value as T;
}
internal bool ContainsPath(string path)
internal bool ContainsPath(string? path)
{
if (path == null)
return false;
string[] parts = path.Split('.');
Type current = GetType();
Type? current = GetType();
foreach (string part in parts)
{
PropertyInfo? property = current?.GetProperty(part);