We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfe68f commit d152928Copy full SHA for d152928
src/BenchmarkDotNet/Extensions/ReflectionExtensions.cs
@@ -235,7 +235,11 @@ private static bool IsRunnableGenericType(TypeInfo typeInfo)
235
internal static bool IsLinqPad(this Assembly assembly) => assembly.FullName.IndexOf("LINQPAD", StringComparison.OrdinalIgnoreCase) >= 0;
236
237
internal static bool IsByRefLike(this Type type)
238
+#if NETSTANDARD2_0
239
// Type.IsByRefLike is not available in netstandard2.0.
240
=> type.IsValueType && type.CustomAttributes.Any(attr => attr.AttributeType.FullName == "System.Runtime.CompilerServices.IsByRefLikeAttribute");
241
+#else
242
+ => type.IsByRefLike;
243
+#endif
244
}
245
0 commit comments