Skip to content

Commit 445d7a5

Browse files
committed
Changed sender type to object in notification message
1 parent 6c8ddde commit 445d7a5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Microsoft.Toolkit.Mvvm/Messaging/Messages/PropertyChangedMessage{T}.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.Toolkit.Mvvm.ComponentModel;
6-
75
#pragma warning disable SA1512
86

97
// This file is inspired from the MvvmLight libray (lbugnion/mvvmlight),
@@ -24,7 +22,7 @@ public class PropertyChangedMessage<T>
2422
/// <param name="propertyName">The name of the property that changed.</param>
2523
/// <param name="oldValue">The value that the property had before the change.</param>
2624
/// <param name="newValue">The value that the property has after the change.</param>
27-
public PropertyChangedMessage(ObservableObject sender, string? propertyName, T oldValue, T newValue)
25+
public PropertyChangedMessage(object sender, string? propertyName, T oldValue, T newValue)
2826
{
2927
Sender = sender;
3028
PropertyName = propertyName;
@@ -35,7 +33,7 @@ public PropertyChangedMessage(ObservableObject sender, string? propertyName, T o
3533
/// <summary>
3634
/// Gets the original sender of the broadcast message.
3735
/// </summary>
38-
public ObservableObject Sender { get; }
36+
public object Sender { get; }
3937

4038
/// <summary>
4139
/// Gets the name of the property that changed.

0 commit comments

Comments
 (0)