15 writes to Item
Microsoft.AspNetCore.Mvc.Razor (2)
Compilation\CompiledViewDescriptor.cs (2)
29Item = item; 49Item = item;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
229Item = precompiledView.Item,
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (10)
RuntimeViewCompilerTest.cs (10)
264Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] 302Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] { }), 337Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] 371Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] 399Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] 429Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] 466Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] 502Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] 542Item = new TestRazorCompiledItem(typeof(string), "mvc.1.0.view", path, new object[] 877Item = CreateForView(path),
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Compilation\DefaultRazorPageFactoryProviderTest.cs (2)
55Item = TestRazorCompiledItem.CreateForView(typeof(TestRazorPage), relativePath), 81Item = TestRazorCompiledItem.CreateForView(typeof(TestRazorPage), relativePath),
29 references to Item
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\CompiledViewDescriptor.cs (1)
98public Type? Type => Item?.Type;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (6)
RuntimeViewCompiler.cs (6)
164if (item.Descriptor?.Item != null && 165ChecksumValidator.IsItemValid(_projectEngine.FileSystem, item.Descriptor.Item)) 199if (precompiledView.Item == null || !ChecksumValidator.IsRecompilationSupported(precompiledView.Item)) 229Item = precompiledView.Item, 282var checksums = precompiledView.Item.GetChecksumMetadata();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (9)
RuntimeViewCompilerTest.cs (9)
276Assert.Same(precompiledView.Item, result.Item); 284Assert.Same(precompiledView.Item, result.Item); 349Assert.Same(precompiledView.Item, result.Item); 411Assert.Same(precompiledView.Item, result.Item); 441Assert.Same(precompiledView.Item, result.Item); 478Assert.Same(precompiledView.Item, result.Item); 485Assert.Same(precompiledView.Item, result.Item); 523Assert.Same(precompiledView.Item, result.Item); 555Assert.Same(precompiledView.Item, result.Item);
Microsoft.AspNetCore.Mvc.Razor.Test (9)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (9)
31Assert.Equal(new[] { item1, item2 }, feature.ViewDescriptors.Select(d => d.Item)); 60Assert.Equal(new[] { item1, item2 }, feature.ViewDescriptors.Select(d => d.Item)); 84Assert.Equal(new[] { item1, item2 }, feature.ViewDescriptors.Select(d => d.Item)); 129Assert.Equal(new[] { item1, item2 }, feature.ViewDescriptors.Select(d => d.Item)); 141Assert.Same(item.Item, item1); 145Assert.Same(typeof(TestReloadedPage), item.Item.Type); 146Assert.Same("Item2", item.Item.Identifier); 147Assert.Equal("mvc.1.0.razor-page", item.Item.Kind); 148Assert.Contains(typeof(RouteAttribute), item.Item.Metadata.Select(m => m.GetType())); // Verify we pick up new attributes
Microsoft.AspNetCore.Mvc.RazorPages (4)
ApplicationModels\CompiledPageRouteModelProvider.cs (4)
71if (viewDescriptor.Item != null) 73return viewDescriptor.Item.Kind == RazorPageDocumentKind; 122if (viewDescriptor.Item != null) 124return viewDescriptor.Item.Metadata