PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / IType­Signature Interface / IType­Signature Methods / IType­Signature.​Get­Value­Size Method

ITypeSignature.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#
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.
See Also