Dela via


RazorCompiledItemLoader Class

Definition

A loader implementation that can load RazorCompiledItem objects from an Assembly using reflection.

public ref class RazorCompiledItemLoader
public class RazorCompiledItemLoader
type RazorCompiledItemLoader = class
Public Class RazorCompiledItemLoader
Inheritance
RazorCompiledItemLoader

Remarks

Inherit from RazorCompiledItemLoader to customize the behavior when loading RazorCompiledItem objects from an Assembly. The default implementations of methods defined by this class use reflection in a trivial way to load attributes from the assembly.

Inheriting from RazorCompiledItemLoader is useful when an implementation needs to consider additional configuration or data outside of the Assembly being loaded.

Subclasses of RazorCompiledItemLoader can return subclasses of RazorCompiledItem with additional data members by overriding CreateItem(RazorCompiledItemAttribute).

Constructors

RazorCompiledItemLoader()

Methods

CreateItem(RazorCompiledItemAttribute)

Creates a RazorCompiledItem from a RazorCompiledItemAttribute.

LoadAttributes(Assembly)

Retrieves the list of RazorCompiledItemAttribute attributes defined for the provided Assembly.

LoadItems(Assembly)

Loads a list of RazorCompiledItem objects from the provided Assembly.

Applies to