diff --git a/src/CommunityToolkit.Maui/Converters/ICommunityToolkitValueConverter.shared.cs b/src/CommunityToolkit.Maui/Converters/ICommunityToolkitValueConverter.shared.cs index 51b77034bd..465fc96c16 100644 --- a/src/CommunityToolkit.Maui/Converters/ICommunityToolkitValueConverter.shared.cs +++ b/src/CommunityToolkit.Maui/Converters/ICommunityToolkitValueConverter.shared.cs @@ -52,12 +52,12 @@ public interface ICommunityToolkitValueConverter : IValueConverter /// -#pragma warning disable IL2092 + [UnconditionalSuppressMessage("TrimAnalysis", "IL2092", Justification = "The ToType and FromType properties are attributed with the appropriate DynamicallyAccessedMembers attributes.")] object? IValueConverter.Convert(object? value, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] Type targetType, object? parameter, CultureInfo culture) => Convert(value, targetType, parameter, culture); /// + [UnconditionalSuppressMessage("TrimAnalysis", "IL2092", Justification = "The ToType and FromType properties are attributed with the appropriate DynamicallyAccessedMembers attributes.")] object? IValueConverter.ConvertBack(object? value, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] Type targetType, object? parameter, CultureInfo culture) => ConvertBack(value, targetType, parameter, culture); -#pragma warning restore IL2092 } \ No newline at end of file