System.Reflection.AssemblyName.ReferenceMatchesDefinition Method

Returns a value indicating whether two assembly names are the same. The comparison is based on the simple assembly names.

Syntax

public static bool ReferenceMatchesDefinition (AssemblyName reference, AssemblyName definition)

Parameters

reference
The reference assembly name.
definition
The assembly name that is compared to the reference assembly.

Returns

true if the simple assembly names are the same; otherwise, false.

Remarks

The comparison depends only on the simple assembly name. It ignores version, culture, and public key token.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0