PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Type­Signature­Extensions Class / Type­Signature­Extensions Methods / Type­Signature­Extensions.​Get­Assignment­Distance Method / Type­Signature­Extensions.​Get­Assignment­Distance Method (IType­Signature, IType­Signature)

TypeSignatureExtensions.GetAssignmentDistance Method (ITypeSignature, ITypeSignature)

[Missing <summary> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.GetAssignmentDistance(PostSharp.Sdk.CodeModel.ITypeSignature,PostSharp.Sdk.CodeModel.ITypeSignature)"]

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 static int GetAssignmentDistance(
	this ITypeSignature derivedType,
	ITypeSignature baseType
)

Parameters

derivedType
Type: PostSharp.Sdk.CodeModel.ITypeSignature

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

baseType
Type: PostSharp.Sdk.CodeModel.ITypeSignature

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

Return Value

Type: Int32

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.TypeSignatureExtensions.GetAssignmentDistance(PostSharp.Sdk.CodeModel.ITypeSignature,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