Skip to content

Commit f46f3aa

Browse files
committed
Fixup
1 parent cfb7ac2 commit f46f3aa

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Components/Web/ref/Microsoft.AspNetCore.Components.Web.netcoreapp.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
9292
protected override string? FormatValueAsString(TValue value) { throw null; }
9393
protected override bool TryParseValueFromString(string? value, [System.Diagnostics.CodeAnalysis.MaybeNullAttribute] out TValue result, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(false)] out string? validationErrorMessage) { throw null; }
9494
}
95-
public partial class InputSelect<TValue> : Microsoft.AspNetCore.Components.Forms.InputBase<TValue>
95+
public partial class InputSelect<TValue> : Microsoft.AspNetCore.Components.Forms.InputBase<TValue> where TValue : notnull
9696
{
9797
public InputSelect() { }
9898
[Microsoft.AspNetCore.Components.ParameterAttribute]
@@ -106,11 +106,11 @@ public InputText() { }
106106
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) { }
107107
protected override bool TryParseValueFromString(string? value, out string? result, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(false)] out string? validationErrorMessage) { throw null; }
108108
}
109-
public partial class InputTextArea : Microsoft.AspNetCore.Components.Forms.InputBase<string>
109+
public partial class InputTextArea : Microsoft.AspNetCore.Components.Forms.InputBase<string?>
110110
{
111111
public InputTextArea() { }
112112
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) { }
113-
protected override bool TryParseValueFromString(string? value, [System.Diagnostics.CodeAnalysis.MaybeNullAttribute] out string result, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(false)] out string? validationErrorMessage) { throw null; }
113+
protected override bool TryParseValueFromString(string? value, out string? result, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(false)] out string? validationErrorMessage) { throw null; }
114114
}
115115
public partial class ValidationMessage<TValue> : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable
116116
{

src/Components/Web/ref/Microsoft.AspNetCore.Components.Web.netstandard2.0.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Renderin
8888
protected override string? FormatValueAsString(TValue value) { throw null; }
8989
protected override bool TryParseValueFromString(string? value, out TValue result, out string? validationErrorMessage) { throw null; }
9090
}
91-
public partial class InputSelect<TValue> : Microsoft.AspNetCore.Components.Forms.InputBase<TValue>
91+
public partial class InputSelect<TValue> : Microsoft.AspNetCore.Components.Forms.InputBase<TValue> where TValue : notnull
9292
{
9393
public InputSelect() { }
9494
[Microsoft.AspNetCore.Components.ParameterAttribute]
@@ -102,11 +102,11 @@ public InputText() { }
102102
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) { }
103103
protected override bool TryParseValueFromString(string? value, out string? result, out string? validationErrorMessage) { throw null; }
104104
}
105-
public partial class InputTextArea : Microsoft.AspNetCore.Components.Forms.InputBase<string>
105+
public partial class InputTextArea : Microsoft.AspNetCore.Components.Forms.InputBase<string?>
106106
{
107107
public InputTextArea() { }
108108
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder builder) { }
109-
protected override bool TryParseValueFromString(string? value, out string result, out string? validationErrorMessage) { throw null; }
109+
protected override bool TryParseValueFromString(string? value, out string? result, out string? validationErrorMessage) { throw null; }
110110
}
111111
public partial class ValidationMessage<TValue> : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable
112112
{

src/Components/Web/src/Forms/InputSelect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Components.Forms
1111
/// <summary>
1212
/// A dropdown selection component.
1313
/// </summary>
14-
public class InputSelect<TValue> : InputBase<TValue>
14+
public class InputSelect<TValue> : InputBase<TValue> where TValue : notnull
1515
{
1616
private static readonly Type? _nullableUnderlyingType = Nullable.GetUnderlyingType(typeof(TValue));
1717

0 commit comments

Comments
 (0)