Skip to content

Commit e514869

Browse files
committed
Added missing contravariant type argument modifier
1 parent 332cda8 commit e514869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Mvvm/Messaging/IMessenger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Microsoft.Toolkit.Mvvm.Messaging
1616
/// <typeparam name="TMessage">The type of message to receive.</typeparam>
1717
/// <param name="recipient">The recipient that is receiving the message.</param>
1818
/// <param name="message">The message being received.</param>
19-
public delegate void MessageHandler<TMessage>(object recipient, TMessage message);
19+
public delegate void MessageHandler<in TMessage>(object recipient, TMessage message);
2020

2121
/// <summary>
2222
/// An interface for a type providing the ability to exchange messages between different objects.

0 commit comments

Comments
 (0)