mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Nodes - Implemented saving/loading
Nodes - Added data model node
This commit is contained in:
1 parent
61d7f1e1fb
commit
afc4bee7ac
29 files changed
+730
-157
No files matched your search
@@ -92,5 +92,17 @@ namespace Artemis.Core
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int IndexOf<T>(this IReadOnlyCollection<T> self, T elementToFind)
|
||||
{
|
||||
int i = 0;
|
||||
foreach (T element in self)
|
||||
{
|
||||
if (Equals(element, elementToFind))
|
||||
return i;
|
||||
i++;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user