PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Type­Signature­Extensions Class / Type­Signature­Extensions Methods / Type­Signature­Extensions.​Is­Value­Type Method

TypeSignatureExtensions.IsValueType Method

Returns true if the type signature is a value type; false if it's a reference type; and throws a NullReferenceException if it's a generic parameter or if for some other reason we don't know if it's value or reference type. Consider using IsValueTypeSafe() == true instead.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public static bool IsValueType(
	this ITypeSignature typeSignature


Type: PostSharp.Sdk.CodeModel.ITypeSignature

[Missing <param name="typeSignature"/> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.IsValueType(PostSharp.Sdk.CodeModel.ITypeSignature)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.IsValueType(PostSharp.Sdk.CodeModel.ITypeSignature)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITypeSignature. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also