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

Commit 828fa9c

Browse files
committed
use PCL friendly IsGenericType() ext method
1 parent b7b7e4f commit 828fa9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/ReflectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public static bool AllHaveInterfacesOfType(
218218

219219
public static bool IsNullableType(this Type type)
220220
{
221-
return type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Nullable<>);
221+
return type.IsGenericType() && type.GetGenericTypeDefinition() == typeof(Nullable<>);
222222
}
223223

224224
public static TypeCode GetUnderlyingTypeCode(this Type type)

0 commit comments

Comments
 (0)