Skip to content

Commit 1ce3bde

Browse files
committed
Suppress linker error
1 parent 1df5a10 commit 1ce3bde

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Shared/PropertyHelper/PropertyHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ public static PropertyHelper[] GetVisibleProperties(
187187
}
188188

189189
[RequiresUnreferencedCode("This API is not trimmer safe.")]
190+
[UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "Guarded by RuntimeFeature.IsDynamicCodeSupported")]
190191
private static Func<object, object?> MakeFastPropertyGetter(
191192
PropertyInfo propertyInfo,
192193
MethodInfo propertyGetterWrapperMethod,
@@ -269,6 +270,7 @@ public static PropertyHelper[] GetVisibleProperties(
269270
/// same speed. This only works for reference types.
270271
/// </remarks>
271272
[RequiresUnreferencedCode("This API is not trimmer safe.")]
273+
[UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "Guarded by RuntimeFeature.IsDynamicCodeSupported")]
272274
public static Action<object, object?> MakeFastPropertySetter(PropertyInfo propertyInfo)
273275
{
274276
Debug.Assert(propertyInfo != null);

0 commit comments

Comments
 (0)