Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Conceptual documentation

Commented examples

API documentation

Aspect API

Metalama.​Framework.​Advising

Metalama.​Framework.​Aspects

Metalama.​Framework.​Code

Metalama.​Framework.​Code.​Collections

Metalama.​Framework.​Code.​Comparers

Metalama.​Framework.​Code.​Declaration­Builders

Metalama.​Framework.​Code.​Invokers

Metalama.​Framework.​Code.​Syntax­Builders

Metalama.​Framework.​Code.​Types

Metalama.​Framework.​Diagnostics

Metalama.​Framework.​Eligibility

Metalama.​Framework.​Fabrics

Metalama.​Framework.​Metrics

Metalama.​Framework.​Options

Metalama.​Framework.​Project

Metalama.​Framework.​Run­Time

Metalama.​Framework.​Serialization

Metalama.​Framework.​Services

Metalama.​Framework.​Utilities

Extensions API

Patterns API

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

  • Article

Class TemplateAttribute

The base class for all custom attributes that mark a declaration as a template.

Inheritance
TemplateAttribute
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event)]
public class TemplateAttribute : Attribute, ITemplateAttribute, IAdviceAttribute

Constructors

Name Description
TemplateAttribute()

Properties

Name Description
Accessibility
IsAbstract
IsEmpty

Gets or sets a value indicating whether the template is an empty implementation, which means that the framework will consider the template to be undefined unless it is overridden in a derived class. It is similar to an abstract template implementation, but aspect deriving from the abstract class is not obliged to provide an implementation for the empty but non-abstract template.

IsExtern
IsPartial
IsRequired
IsSealed
IsVirtual
Name

Extension Methods