Skip to content

Commit 5979390

Browse files
authored
Add UnconditionalSuppressMessage to fix IL2092 (#2461)
1 parent 5555324 commit 5979390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CommunityToolkit.Maui/Converters/ICommunityToolkitValueConverter.shared.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ public interface ICommunityToolkitValueConverter : IValueConverter
5252

5353

5454
/// <inheritdoc />
55-
#pragma warning disable IL2092
55+
[UnconditionalSuppressMessage("TrimAnalysis", "IL2092", Justification = "The ToType and FromType properties are attributed with the appropriate DynamicallyAccessedMembers attributes.")]
5656
object? IValueConverter.Convert(object? value, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] Type targetType, object? parameter, CultureInfo culture) =>
5757
Convert(value, targetType, parameter, culture);
5858

5959
/// <inheritdoc />
60+
[UnconditionalSuppressMessage("TrimAnalysis", "IL2092", Justification = "The ToType and FromType properties are attributed with the appropriate DynamicallyAccessedMembers attributes.")]
6061
object? IValueConverter.ConvertBack(object? value, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] Type targetType, object? parameter, CultureInfo culture) =>
6162
ConvertBack(value, targetType, parameter, culture);
62-
#pragma warning restore IL2092
6363
}

0 commit comments

Comments
 (0)