File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/Shared/PropertyHelper Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments