Skip to content

Commit c7f262c

Browse files
committed
Fixed nullability annotations in ObservableValidator
1 parent f432b84 commit c7f262c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Microsoft.Toolkit.Mvvm/ComponentModel/ObservableValidator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected ObservableValidator()
8080
/// be used to validate all properties, which will reference the current instance.
8181
/// </summary>
8282
/// <param name="items">A set of key/value pairs to make available to consumers.</param>
83-
protected ObservableValidator(IDictionary<object, object?> items)
83+
protected ObservableValidator(IDictionary<object, object?>? items)
8484
{
8585
this.validationContext = new ValidationContext(this, items);
8686
}
@@ -92,7 +92,7 @@ protected ObservableValidator(IDictionary<object, object?> items)
9292
/// </summary>
9393
/// <param name="serviceProvider">An <see cref="IServiceProvider"/> instance to make available during validation.</param>
9494
/// <param name="items">A set of key/value pairs to make available to consumers.</param>
95-
protected ObservableValidator(IServiceProvider serviceProvider, IDictionary<object, object?> items)
95+
protected ObservableValidator(IServiceProvider? serviceProvider, IDictionary<object, object?>? items)
9696
{
9797
this.validationContext = new ValidationContext(this, serviceProvider, items);
9898
}

0 commit comments

Comments
 (0)