Click or drag to resize

GuardAreNotSameT Method

[This is preliminary documentation and is subject to change.]

Checks if object1 is not the same as object2

Namespace:  CSInfrastructure.CodeContracts
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static void AreNotSame<T>(
	T object1,
	T object2,
	string paramName1,
	string paramName2
)

Parameters

object1
Type: T
The first object to compare with the second
object2
Type: T
The second object to compare with the first
paramName1
Type: SystemString
The name of the first parameter being checked
paramName2
Type: SystemString
The name of the second parameter being checked

Type Parameters

T
The type of objects being checked
Exceptions
ExceptionCondition
ArgumentExceptionThrown when object1 equals object2, either by reference or by value
See Also