1 instantiation of ModelState
System.Web (1)
ModelBinding\ModelStateDictionary.cs (1)
109
modelState = new
ModelState
();
22 references to ModelState
System.Web (22)
ModelBinding\ModelStateDictionary.cs (20)
8
public class ModelStateDictionary : IDictionary<string,
ModelState
> {
10
private readonly Dictionary<string,
ModelState
> _innerDictionary = new Dictionary<string,
ModelState
>(StringComparer.OrdinalIgnoreCase);
33
return ((IDictionary<string,
ModelState
>)_innerDictionary).IsReadOnly;
49
public
ModelState
this[string key] {
51
ModelState
value;
60
public ICollection<
ModelState
> Values {
66
public void Add(KeyValuePair<string,
ModelState
> item) {
67
((IDictionary<string,
ModelState
>)_innerDictionary).Add(item);
70
public void Add(string key,
ModelState
value) {
86
public bool Contains(KeyValuePair<string,
ModelState
> item) {
87
return ((IDictionary<string,
ModelState
>)_innerDictionary).Contains(item);
94
public void CopyTo(KeyValuePair<string,
ModelState
>[] array, int arrayIndex) {
95
((IDictionary<string,
ModelState
>)_innerDictionary).CopyTo(array, arrayIndex);
98
public IEnumerator<KeyValuePair<string,
ModelState
>> GetEnumerator() {
102
private
ModelState
GetModelStateForKey(string key) {
107
ModelState
modelState;
135
public bool Remove(KeyValuePair<string,
ModelState
> item) {
136
return ((IDictionary<string,
ModelState
>)_innerDictionary).Remove(item);
147
public bool TryGetValue(string key, out
ModelState
value) {
UI\WebControls\ModelErrorMessage.cs (1)
88
ModelState
modelState;
UI\WebControls\ValidationSummary.cs (1)
288
foreach (KeyValuePair<string,
ModelState
> pair in modelState) {