Sets the assembly version range to match.

Namespace:  Gallio.Common.Reflection
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public void SetVersionRange(
	Version minVersion,
	Version maxVersion
)
Visual Basic (Declaration)
Public Sub SetVersionRange ( _
	minVersion As Version, _
	maxVersion As Version _
)

Parameters

minVersion
Type: System..::.Version
The minimum assembly version to match inclusively, or null if there is no lower bound.
maxVersion
Type: System..::.Version
The maximum assembly version to match inclusively, or null if there is no upper bound.

Remarks

minVersion and maxVersion must either both be non-null or both be null.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThrown if minVersion is null but not maxVersion or vice-versa. Also thrown if minVersion is greater than maxVersion.

See Also