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

TypeSignatureExtensions.IsAssignableFromRuntimeValue Method

Determines whether a given type signature can be assigned a given runtime value.

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


Type: PostSharp.Sdk.CodeModel.ITypeSignature
A type signature.
Type: System.Object
A runtime value.

Return Value

Type: Boolean
true if value can be assigned to a location of type typeSignature, otherwise false.

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