MetalamaConceptual documentationCreating aspectsCreating simple aspects
Open sandboxFocusImprove this doc

Creating simple aspects

In Using Metalama, you learned how to utilize pre-built aspects in your project. This section introduces you to writing your first aspect. Initially, we will concentrate on simple tasks and features. Subsequent sections in this chapter will go into more intricate details.

In this section

Article Description
Getting started: overriding a method This article demonstrates how to override a method's implementation with an aspect.
Getting started: overriding fields and properties This article illustrates how to override a property's implementation or encapsulate a field with a property using an aspect.
Getting started: contracts This article elucidates how to validate the value of fields, properties, or parameters.