mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Data model - Added data model visualization view model
Debugger - Split debugger into different tabs Debugger - Added data model debugger
This commit is contained in:
1 parent
291a343428
commit
796c0dc671
33 files changed
+565
-236
No files matched your search
@@ -12,13 +12,13 @@ namespace Artemis.Core.Extensions
|
||||
file.CopyTo(Path.Combine(target.FullName, file.Name));
|
||||
}
|
||||
|
||||
public static void RecursiveDelete(this DirectoryInfo baseDir)
|
||||
public static void DeleteRecursively(this DirectoryInfo baseDir)
|
||||
{
|
||||
if (!baseDir.Exists)
|
||||
return;
|
||||
|
||||
foreach (var dir in baseDir.EnumerateDirectories())
|
||||
RecursiveDelete(dir);
|
||||
DeleteRecursively(dir);
|
||||
var files = baseDir.GetFiles();
|
||||
foreach (var file in files)
|
||||
{
|
||||
|
||||
@@ -12,6 +12,11 @@ namespace Artemis.Core.Extensions
|
||||
return type.BaseType?.GetGenericTypeDefinition() == genericType;
|
||||
}
|
||||
|
||||
public static bool IsStruct(this Type source)
|
||||
{
|
||||
return source.IsValueType && !source.IsPrimitive && !source.IsEnum;
|
||||
}
|
||||
|
||||
public static bool IsNumber(this object value)
|
||||
{
|
||||
return value is sbyte
|
||||
|
||||
Reference in new issue
Block a user