Open sandboxFocus

Property BaseType

BaseType

Gets a dynamic object that must be used to get access to static members of the type (e.g. meta.BaseStatic.MyStaticMethod()). If the current declaration is an extension member, the property returns the declaring type, not the receiver type.

Declaration
public static dynamic BaseType { get; }
Property Value
Type Description
dynamic
Remarks

The BaseType property exposes the state of the target type as it is before the application of the current aspect layer. It corresponds to InvokerOptions.Default. To access the final layer, use ThisType. To access instance members, use Base.

Because BaseType returns a dynamic value, static members accessed through it are validated at template expansion time, not at template compilation time.

See Also