FormControlState
Class to store the state of a form control.
using System.Runtime.CompilerServices;
namespace AngleSharp.Html
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
internal sealed class FormControlState
{
private readonly string _name;
private readonly string _type;
[System.Runtime.CompilerServices.Nullable(2)]
private readonly string _value;
public string Name => _name;
[System.Runtime.CompilerServices.Nullable(2)]
public string Value {
[System.Runtime.CompilerServices.NullableContext(2)]
get {
return _value;
}
}
public string Type => _type;
public FormControlState(string name, string type, [System.Runtime.CompilerServices.Nullable(2)] string value)
{
_name = name;
_type = type;
_value = value;
}
}
}