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)
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: TValueThe configuration value, or null if no configuration element defined that property.