The accessor for ElementMetadata can sometimes return null when concurrently accessed. This change solves this issue and simplified a bunch of lazy-computed properties, by precomputing all type-related facets of ModelMetadata. This also adds a ElementType property to ModelMetadata to maintain the current separation of concerns as ModelMetadata is unaware of the metadata provider. |
||
|---|---|---|
| .. | ||
| ModelMetadataTest.cs | ||
| ModelStateDictionaryTest.cs | ||
| ValueProviderResultTest.cs | ||