PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Type­Spec­Declaration Class / Type­Spec­Declaration Methods / Type­Spec­Declaration.​Get­Value­Size Method

TypeSpecDeclaration.GetValueSize Method

Gets the size of the value type.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public Nullable<int> GetValueSize()

Return Value

Type: Nullable<Int32>
The size of the value type in bytes, or -1 if the type is not a value type or has no fixed size.

Implements

ITypeSignature.GetValueSize()
See Also