Changed remaining ifdefs from K10 and ASPNETCORE50
This commit is contained in:
parent
2e6e5307f6
commit
88eb29b5d0
|
|
@ -10,8 +10,8 @@ namespace Microsoft.AspNet.Mvc
|
||||||
internal static class TypeExtensions
|
internal static class TypeExtensions
|
||||||
{
|
{
|
||||||
// NOTE: Do not make #105 worse! Do not add new extension methods that conflict w/ .NET 4.5 methods. The
|
// NOTE: Do not make #105 worse! Do not add new extension methods that conflict w/ .NET 4.5 methods. The
|
||||||
// exising NETFX_CORE || K10 methods should go away (soon).
|
// exising NETFX_CORE || ASPNETCORE50 methods should go away (soon).
|
||||||
#if NETFX_CORE || K10
|
#if NETFX_CORE || ASPNETCORE50
|
||||||
private static bool EqualTo([NotNull] this Type[] t1, [NotNull] Type[] t2)
|
private static bool EqualTo([NotNull] this Type[] t1, [NotNull] Type[] t2)
|
||||||
{
|
{
|
||||||
if (t1.Length != t2.Length)
|
if (t1.Length != t2.Length)
|
||||||
|
|
@ -53,7 +53,7 @@ namespace Microsoft.AspNet.Mvc
|
||||||
queryType.GetInterfaces().FirstOrDefault(matchesInterface);
|
queryType.GetInterfaces().FirstOrDefault(matchesInterface);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if NETFX_CORE || K10
|
#if NETFX_CORE || ASPNETCORE50
|
||||||
public static Type[] GetGenericArguments([NotNull] this Type type)
|
public static Type[] GetGenericArguments([NotNull] this Type type)
|
||||||
{
|
{
|
||||||
return type.GetTypeInfo().GenericTypeArguments;
|
return type.GetTypeInfo().GenericTypeArguments;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue