Open sandboxFocus

Interface IProject

In Metalama, use IProject.

Namespace: PostSharp.Extensibility
Assembly: Metalama.Migration.dll
Syntax
[InternalImplement]
[Obsolete("In Metalama, use 'IProject'.", false)]
public interface IProject : IServiceLocator, IService

Properties

Name Description
StateStore

There is no equivalent in Metalama. However, storing state in static fields or properties is equally dangerous than in PostSharp.

TargetAssembly

In Metalama, an assembly is an ICompilation, but it is not exposed on the project.

Methods

Name Description
EvaluateExpression(string)

In Metalama, use TryGetProperty(string, out string?).

GetExtensionElements(string, string)

In Metalama, use Extension<T>().

GetService<T>(bool)

In Metalama, use ServiceProvider.

Extension Methods