mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Condition VMs - Simplification WIPpepepepe
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user