2 writes to Container
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ModelExplorer.cs (2)
59Container = container; 81Container = container;
19 references to Container
Microsoft.AspNetCore.Mvc.ViewFeatures (14)
HtmlHelper.cs (1)
668modelExplorer.Container,
ModelExplorer.cs (11)
91/// The <see cref="Container"/> will most commonly be set as a result of calling 93/// have it's <see cref="Container"/> set to the instance upon which <see cref="GetExplorerForProperty(string)"/> 97/// This however is not a requirement. The <see cref="Container"/> is informational, and may not 127Debug.Assert(Container != null); 128_model = _modelAccessor(Container.Model); 218if (Container == null) 224return new ModelExplorer(_metadataProvider, Container, Metadata, model); 313/// The returned <see cref="ModelExplorer"/> will have the current instance set as its <see cref="Container"/>. 338/// The returned <see cref="ModelExplorer"/> will have the current instance set as its <see cref="Container"/>. 362/// The returned <see cref="ModelExplorer"/> will have the current instance set as its <see cref="Container"/>. 387/// The returned <see cref="ModelExplorer"/> will have the current instance set as its <see cref="Container"/>.
ViewDataDictionary.cs (2)
225source.ModelExplorer.Container, 477ModelExplorer = new ModelExplorer(_metadataProvider, ModelExplorer.Container, ModelMetadata, value);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ExpressionMetadataProviderTest.cs (2)
109Assert.Same(myModel, metadata.Container.Model); 152Assert.Same(myModel, metadata.Container.Model);
ModelExplorerTest.cs (3)
54Assert.Same(modelExplorer, baseProperty.Container); 59Assert.Same(modelExplorer, derivedProperty.Container); 78Assert.Same(modelExplorer, baseProperty.Container);