Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 6a47e54

Browse files
committed
Update Extensions.cs
1 parent f1b83e7 commit 6a47e54

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/Core/Reflection/Extensions.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,6 @@ public static HashSet<Type> GetImplementationsOf(this Type baseType, bool allowA
3636

3737
// ------- Misc extensions --------
3838

39-
/// <summary>
40-
/// Recursively check the type and its base types to find any generic arguments.
41-
/// </summary>
42-
public static bool TryGetGenericArguments(this Type type, out Type[] args)
43-
{
44-
if (type.IsGenericType)
45-
{
46-
args = type.GetGenericArguments();
47-
return true;
48-
}
49-
else if (type.BaseType != null)
50-
{
51-
return TryGetGenericArguments(type.BaseType, out args);
52-
}
53-
else
54-
{
55-
args = null;
56-
return false;
57-
}
58-
}
59-
6039
/// <summary>
6140
/// Safely try to get all Types inside an Assembly.
6241
/// </summary>

0 commit comments

Comments
 (0)