{
result = NI_System_Type_get_IsValueType;
}
+ else if (strcmp(methodName, "IsAssignableFrom") == 0)
+ {
+ result = NI_System_Type_IsAssignableFrom;
+ }
}
}
- #if defined(_TARGET_XARCH_) // We currently only support BSWAP on x86
+ #if defined(TARGET_XARCH) // We currently only support BSWAP on x86
else if (strcmp(namespaceName, "System.Buffers.Binary") == 0)
{
if ((strcmp(className, "BinaryPrimitives") == 0) && (strcmp(methodName, "ReverseEndianness") == 0))
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
+ using System.Diagnostics.CodeAnalysis;
using System.Reflection;
+using System.Runtime.CompilerServices;
namespace System
{
return false;
}
- public virtual bool IsAssignableFrom(Type? c)
+ [Intrinsic]
+ public virtual bool IsAssignableFrom([NotNullWhen(true)] Type? c)
{
if (c == null)
return false;