mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
fix: Reverting dumb change that prevented default values from being instantiated
This commit is contained in:
parent
9074e6df8a
commit
6be6971cf7
1 changed files with 3 additions and 1 deletions
|
|
@ -6,11 +6,13 @@ using ICD.Common.Utils.IO;
|
|||
#if SIMPLSHARP
|
||||
using Crestron.SimplSharp.CrestronIO;
|
||||
using Crestron.SimplSharp.Reflection;
|
||||
using Activator = Crestron.SimplSharp.Reflection.Activator;
|
||||
#else
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using Microsoft.Extensions.DependencyModel;
|
||||
using System.Runtime.Loader;
|
||||
using Activator = System.Activator;
|
||||
#endif
|
||||
|
||||
namespace ICD.Common.Utils
|
||||
|
|
@ -168,7 +170,7 @@ namespace ICD.Common.Utils
|
|||
.GetTypeInfo()
|
||||
#endif
|
||||
.IsValueType
|
||||
? CreateInstance(type)
|
||||
? Activator.CreateInstance(type)
|
||||
: null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue