%%PageItemTitle%%

Compare .NET Objects

T
Compare .NET Objects
ShouldNotCompare<T> Method
See Also  Send Feedback
KellermanSoftware.CompareNetObjects Namespace > CompareExtensions Class : ShouldNotCompare<T> Method


actual
expected
message

Glossary Item Box

Throws a CompareException if the classes are equal

Syntax

Visual Basic (Declaration) 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Sub ShouldNotCompare(Of T)( _
   ByVal actual As T, _
   ByVal expected As T, _
   Optional ByVal message As System.String _
) 
Visual Basic (Usage)Copy Code
Dim actual As T
Dim expected As T
Dim message As System.String
 
CompareExtensions.ShouldNotCompare(Of T)(actual, expected, message)
C# 
[System.Runtime.CompilerServices.Extension()]
public static void ShouldNotCompare<T>( 
   T actual,
   T expected,
   System.string message
)
Managed Extensions for C++ 
[System.Runtime.CompilerServices.Extension()]
public: static void ShouldNotCompare<T>( 
   T* actual,
   T* expected,
   System.string* message
) 

Parameters

actual
expected
message

Type Parameters

T

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Kellerman Software 2018 All Rights Reserved.