Skip to content

Commit 60e3a50

Browse files
committed
Make the linker happy?
1 parent 9b83357 commit 60e3a50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Components/Components/src/SupplyParameterFromPersistentComponentStateValueProvider.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ private static PropertyGetter ResolvePropertyGetter(Type type, string propertyNa
8282
return _propertyGetterCache.GetOrAdd((type, propertyName), PropertyGetterFactory);
8383
}
8484

85+
[UnconditionalSuppressMessage(
86+
"Trimming",
87+
"IL2077:Target parameter argument does not satisfy 'DynamicallyAccessedMembersAttribute' in call to target method. The source field does not have matching annotations.",
88+
Justification = "Properties of rendered components are preserved through other means and won't get trimmed.")]
89+
8590
private static PropertyGetter PropertyGetterFactory((Type type, string propertyName) key)
8691
{
8792
var (type, propertyName) = key;

0 commit comments

Comments
 (0)