Skip to content

Commit 87ba6cc

Browse files
API review: seal
1 parent 57e970e commit 87ba6cc

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/Components/Web/src/Forms/Mapping/FormMappingError.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Components.Forms.Mapping;
66
/// <summary>
77
/// An error that occurred during the form mapping process.
88
/// </summary>
9-
public class FormMappingError
9+
public sealed class FormMappingError
1010
{
1111
private static readonly char[] Separators = new char[] { '.', '[' };
1212
private readonly List<FormattableString> _errorMessages;

src/Components/Web/src/Forms/Mapping/FormValueMappingContext.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@ namespace Microsoft.AspNetCore.Components.Forms.Mapping;
66
/// <summary>
77
/// A context that tracks information about mapping a single value from form data.
88
/// </summary>
9-
public class FormValueMappingContext
9+
public sealed class FormValueMappingContext
1010
{
1111
private bool _resultSet;
1212

13-
/// <summary>
14-
/// Initializes a new instance of <see cref="FormValueMappingContext"/>.
15-
/// </summary>
16-
/// <param name="acceptMappingScopeName">The name of a <see cref="FormMappingScope"/>. Values will only be mapped if the incoming data corresponds to this scope name.</param>
17-
/// <param name="acceptFormName">If set, indicates that the mapping should only receive values if the incoming form matches this name. If null, the mapping should receive data from any form in the mapping scope.</param>
18-
/// <param name="valueType">The <see cref="Type"/> of the value to map.</param>
19-
/// <param name="parameterName">The name of the parameter to map data to.</param>
20-
public FormValueMappingContext(string acceptMappingScopeName, string? acceptFormName, Type valueType, string parameterName)
13+
internal FormValueMappingContext(string acceptMappingScopeName, string? acceptFormName, Type valueType, string parameterName)
2114
{
2215
ArgumentNullException.ThrowIfNull(acceptMappingScopeName, nameof(acceptMappingScopeName));
2316
ArgumentNullException.ThrowIfNull(valueType, nameof(valueType));

src/Components/Web/src/PublicAPI.Unshipped.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Microsoft.AspNetCore.Components.Forms.Mapping.FormMappingError.Path.get -> strin
4444
Microsoft.AspNetCore.Components.Forms.Mapping.FormValueMappingContext
4545
Microsoft.AspNetCore.Components.Forms.Mapping.FormValueMappingContext.AcceptFormName.get -> string?
4646
Microsoft.AspNetCore.Components.Forms.Mapping.FormValueMappingContext.AcceptMappingScopeName.get -> string!
47-
Microsoft.AspNetCore.Components.Forms.Mapping.FormValueMappingContext.FormValueMappingContext(string! acceptMappingScopeName, string? acceptFormName, System.Type! valueType, string! parameterName) -> void
4847
Microsoft.AspNetCore.Components.Forms.Mapping.FormValueMappingContext.MapErrorToContainer.get -> System.Action<string!, object!>?
4948
Microsoft.AspNetCore.Components.Forms.Mapping.FormValueMappingContext.MapErrorToContainer.set -> void
5049
Microsoft.AspNetCore.Components.Forms.Mapping.FormValueMappingContext.OnError.get -> System.Action<string!, System.FormattableString!, string?>?

0 commit comments

Comments
 (0)