diff --git a/csharp/Lib/Utils/Types.cs b/csharp/Lib/Utils/Types.cs new file mode 100644 index 000000000..5eeb40069 --- /dev/null +++ b/csharp/Lib/Utils/Types.cs @@ -0,0 +1,7 @@ +namespace InnovEnergy.Lib.Utils; + +public static class Types +{ + public static Boolean Extends(this Type type) => type.IsAssignableTo(typeof(T)); + public static Boolean Is(this Type type) => type == typeof(T); +} \ No newline at end of file