Skip to content

Commit

Permalink
Fixed nullability annotations in ObservableValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Feb 19, 2021
1 parent f432b84 commit c7f262c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Microsoft.Toolkit.Mvvm/ComponentModel/ObservableValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected ObservableValidator()
/// be used to validate all properties, which will reference the current instance.
/// </summary>
/// <param name="items">A set of key/value pairs to make available to consumers.</param>
protected ObservableValidator(IDictionary<object, object?> items)
protected ObservableValidator(IDictionary<object, object?>? items)
{
this.validationContext = new ValidationContext(this, items);
}
Expand All @@ -92,7 +92,7 @@ protected ObservableValidator(IDictionary<object, object?> items)
/// </summary>
/// <param name="serviceProvider">An <see cref="IServiceProvider"/> instance to make available during validation.</param>
/// <param name="items">A set of key/value pairs to make available to consumers.</param>
protected ObservableValidator(IServiceProvider serviceProvider, IDictionary<object, object?> items)
protected ObservableValidator(IServiceProvider? serviceProvider, IDictionary<object, object?>? items)
{
this.validationContext = new ValidationContext(this, serviceProvider, items);
}
Expand Down

0 comments on commit c7f262c

Please sign in to comment.