Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 7d6a1a7

Browse files
committed
Make GetTypeInfo internal so doesn't conflict with .NET Core GetTypeInfo
1 parent 85734cd commit 7d6a1a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ServiceStack.Text/ReflectionExtensions.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ public static Type[] GetGenericArguments(this Type type)
8282
return type.GetTypeInfo().GenericTypeArguments;
8383
}
8484

85-
public static TypeInfo GetTypeInfo(this Type type)
85+
internal static TypeInfo GetTypeInfo(this Type type)
8686
{
87-
IReflectableType reflectableType = (IReflectableType)type;
88-
return reflectableType.GetTypeInfo();
87+
return ((IReflectableType)type).GetTypeInfo();
8988
}
9089
#endif
9190

0 commit comments

Comments
 (0)