mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 03:35:04 +00:00
Removing Utils directory to better match namespaces
This commit is contained in:
15
ICD.Common.Utils/Extensions/TypeExtensions.cs
Normal file
15
ICD.Common.Utils/Extensions/TypeExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
#if STANDARD
|
||||
using System.Reflection;
|
||||
#endif
|
||||
|
||||
namespace ICD.Common.Utils.Extensions
|
||||
{
|
||||
public static class TypeExtensions
|
||||
{
|
||||
public static bool IsAssignableTo(this Type from, Type to)
|
||||
{
|
||||
return to.IsAssignableFrom(from);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user