Metalama//API Documentation/Aspect API/Metalama.​Framework.​Project/IProject/Extension
Open sandboxFocus

Method Extension

Extension<T>()

Gets a project extension object or creates a new instance if none has been created before. The type must derive from ProjectExtension and have a default constructor. New instances will be initialized using Initialize(IProject, Boolean).

Declaration
T Extension<T>()
where T : ProjectExtension, new()
Returns
Type Description
T
Type Parameters
Name Description
T

The extension type, which must derive from ProjectExtension and have a default constructor.

See Also