Microsoft.AspNetCore.Mvc.Razor.Host
Initializes a fast .
This constructor does not cache the helper. For caching, use .
Gets the backing .
Gets (or sets in derived types) the property name.
Gets the property value getter.
Gets the property value setter.
Returns the property value for the specified .
The object whose property value will be returned.
The property value.
Sets the property value for the specified .
The object whose property value will be set.
The property value.
Creates and caches fast property helpers that expose getters for every public get property on the
underlying type.
the instance to extract property accessors for.
a cached array of all public property getters from the underlying type of target instance.
Creates and caches fast property helpers that expose getters for every public get property on the
specified type.
the type to extract property accessors for.
a cached array of all public property getters from the type of target instance.
Creates and caches fast property helpers that expose getters for every non-hidden get property
on the specified type.
excludes properties defined on base types that have been
hidden by definitions using the new keyword.
The instance to extract property accessors for.
A cached array of all public property getters from the instance's type.
Creates and caches fast property helpers that expose getters for every non-hidden get property
on the specified type.
excludes properties defined on base types that have been
hidden by definitions using the new keyword.
The type to extract property accessors for.
A cached array of all public property getters from the type.
Creates a single fast property getter. The result is not cached.
propertyInfo to extract the getter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed.
Creates a single fast property getter which is safe for a null input object. The result is not cached.
propertyInfo to extract the getter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed.
Creates a single fast property setter for reference types. The result is not cached.
propertyInfo to extract the setter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed. This only works for reference types.
Given an object, adds each instance property with a public get method as a key and its
associated value to a dictionary.
If the object is already an instance, then a copy
is returned.
The implementation of PropertyHelper will cache the property accessors per-type. This is
faster when the the same type is used multiple times with ObjectToDictionary.
Contains information for the attribute code
generation process.
Name of the model expression type.
Name the method to create ModelExpressions.
Gets or sets the name of the IModelExpressionProvider.
Gets or sets the property name of the ViewDataDictionary.
Specifies the contracts for a Razor host that parses Razor files and generates C# code.
Parses and generates the contents of a Razor file represented by .
The path of the relative to the root of the application.
Used to generate line pragmas and calculate the class name of the generated type.
A that represents the Razor contents.
A instance that represents the results of code generation.
Represent the namespace the main entry class in the view.
Represents the chunk for an @inject statement.
The type name of the property to be injected
The member name of the property to be injected.
Gets or sets the type name of the property to be injected.
Gets or sets the name of the property to be injected.
for an @model directive.
Initializes a new instance of .
The type of the view's model.
Gets the type of the view's model.
Initializes a new instance of with the specified .
The path to the application base.
Initializes a new instance of using the specified .
An rooted at the application base path.
The used to resolve tag helpers on razor views.
Gets the model type used by default when no model is specified.
This value is used as the generic type argument for the base type
Gets the list of chunks that are injected by default by this host.
Gets or sets the name attribute that is used to decorate properties that are injected and need to be
activated.
Gets the type name used to represent model expression properties.
Gets the method name used to create model expressions.
Gets the property name for IModelExpressionProvider.
Gets the property name for ViewDataDictionary.
Locates and parses _ViewImports.cshtml files applying to the given to
create s.
The path to a Razor file to locate _ViewImports.cshtml for.
Inherited s.
A subtype of that uses to support inheritance of tag
helpers from _ViewImports files.
Initializes a new instance of .
The to copy properties from.
The s that are inherited
from parsed pages from _ViewImports files.
The inherited by
default by all Razor pages in the application.
The full name of the model expression .
Instantiates a new instance of .
Contains code generation information for rendering attribute values.
If the attribute being rendered is of the type
, then a model expression will be
created by calling into .
Contains methods to locate _ViewStart.cshtml and _ViewImports.cshtml
File name of _ViewImports.cshtml file
Gets the view start locations that are applicable to the specified path.
The application relative path of the file to locate
_ViewStarts for.
A sequence of paths that represent potential view start locations.
This method returns paths starting from the directory of and
moves upwards until it hits the application root.
e.g.
/Views/Home/View.cshtml -> [ /Views/Home/_ViewStart.cshtml, /Views/_ViewStart.cshtml, /_ViewStart.cshtml ]
Gets the locations for _ViewImportss that are applicable to the specified path.
The application relative path of the file to locate
_ViewImportss for.
A sequence of paths that represent potential _ViewImports locations.
This method returns paths starting from the directory of and
moves upwards until it hits the application root.
e.g.
/Views/Home/View.cshtml -> [ /Views/Home/_ViewImports.cshtml, /Views/_ViewImports.cshtml,
/_ViewImports.cshtml ]
Contains helper methods for dealing with Chunks
Token that is replaced by the model name in @inherits and @inject
chunks as part of .
Returns the used to determine the model name for the page generated
using the specified
The to scan for s in.
The last in the if found, null otherwise.
Returns the type name of the Model specified via a in the
if specified or the default model type.
The to scan for s in.
The name of the default model.
The model type name for the generated page.
Returns a string with the <TModel> token replaced with the value specified in
.
The string to replace the token in.
The model name to replace with.
A string with the token replaced.
A utility type for supporting inheritance of directives into a page from applicable _ViewImports pages.
Initializes a new instance of .
The used to parse _ViewImports pages.
that caches instances.
Sequence of s inherited by default.
Gets an ordered of parsed s and
file paths for each _ViewImports that is applicable to the page located at
. The list is ordered so that the 's
for the _ViewImports closest to the
in the file system appears first.
The path of the page to locate inherited chunks for.
A of parsed _ViewImports
s and their file paths.
The resulting is ordered so that the result
for a _ViewImport closest to the application root appears first and the _ViewImport
closest to the page appears last i.e.
[ /_ViewImport, /Views/_ViewImport, /Views/Home/_ViewImport ]
Merges inherited by default and instances produced by parsing
_ViewImports files into the specified .
The to merge in to.
inherited from _ViewImports
files.
The default model name.
Contains information.
Initializes a new instance of .
The generated from the file at the
given .
The path to the file that generated the given .
The generated from the file at .
The path to the file that generated the .
Default implementation of .
Initializes a new instance of .
The application's .
Defines the contract for merging instances from _ViewStart files.
Visits a from the to merge into.
A from the tree.
Merges an inherited into the .
The to merge into.
The s to merge.
A cache for parsed s.
Get an existing , or create and add a new one if it is
not available in the cache or is expired.
The application relative path of the Razor page.
A delegate that creates a new .
The if a file exists at ,
null otherwise.
The resulting does not contain inherited chunks from _ViewStart or
default inherited chunks.
A that merges instances.
Initializes a new instance of .
The model type to be used to replace <TModel> tokens.
A that merges instances.
Initializes a new instance of .
The type name of the model used by default.
A that merges instances.
Value cannot be null or empty.
Value cannot be null or empty.
The 'inherits' keyword is not allowed when a '{0}' keyword is used.
The 'inherits' keyword is not allowed when a '{0}' keyword is used.
A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'.
A property name must be specified when using the '{0}' statement. Format for a '{0}' statement is '@{0} <Type Name> <Property Name>'.
The '{0}' keyword must be followed by a type name on the same line.
The '{0}' keyword must be followed by a type name on the same line.
Only one '{0}' statement is allowed in a file.
Only one '{0}' statement is allowed in a file.
Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'.
Invalid tag helper property '{0}.{1}'. Dictionary values must not be of type '{2}'.