Open sandboxFocus

Method TryGetValue

TryGetValue(out T)

Gets the value of the current project, if PostSharp is processing a project.

Declaration
public bool TryGetValue(out T value)
Parameters
Type Name Description
T value

The value of the current project, or the default value of T.

Returns
Type Description
bool

true if PostSharp is processing a project, or false at run time.

Exceptions
Type Condition
InvalidOperationException

PostSharp runs, but is not processing a project in the current thread.