From 6a47e542e568be9958b2f033428d58e98d7a5dca Mon Sep 17 00:00:00 2001 From: Sinai Date: Wed, 19 May 2021 18:46:01 +1000 Subject: [PATCH] Update Extensions.cs --- src/Core/Reflection/Extensions.cs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/Core/Reflection/Extensions.cs b/src/Core/Reflection/Extensions.cs index 98393ef..f948fd5 100644 --- a/src/Core/Reflection/Extensions.cs +++ b/src/Core/Reflection/Extensions.cs @@ -36,27 +36,6 @@ namespace UnityExplorer // ------- Misc extensions -------- - /// - /// Recursively check the type and its base types to find any generic arguments. - /// - public static bool TryGetGenericArguments(this Type type, out Type[] args) - { - if (type.IsGenericType) - { - args = type.GetGenericArguments(); - return true; - } - else if (type.BaseType != null) - { - return TryGetGenericArguments(type.BaseType, out args); - } - else - { - args = null; - return false; - } - } - /// /// Safely try to get all Types inside an Assembly. ///