PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Aspect­Weaver­Instance Class / Aspect­Weaver­Instance Methods / Aspect­Weaver­Instance.​Get­Configuration­Object(TConfiguration, TValue) Method

AspectWeaverInstance.GetConfigurationObject<TConfiguration, TValue> Method

Gets an object (i.e., reference type) from the aspect configuration.

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.10.0 (6.10.10.0)
Syntax
C#
public TValue GetConfigurationObject<TConfiguration, TValue>(
	ConfigurationGetter<TConfiguration, TValue> getter
)
where TConfiguration : AspectConfiguration
where TValue : class

Parameters

getter
Type: PostSharp.Sdk.AspectWeaver.ConfigurationGetter<TConfiguration, TValue>
Function (delegate) retrieving the value from a configuration element.

Type Parameters

TConfiguration
Type of the aspect configuration.
TValue
Type of the retrieved aspect.

Return Value

Type: TValue
The configuration value, or null if no configuration element defined that property.
See Also