Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
System Namespace
Type Class
Type Operators
 Equality Operator
Collapse All/Expand All Collapse All
.NET Framework Class Library
Type..::.Equality Operator

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Indicates whether two Type objects are equal.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
Public Shared Operator = ( _
    left As Type, _
    right As Type _
) As Boolean
Visual Basic (Usage)
Dim left As Type
Dim right As Type
Dim returnValue As Boolean

returnValue = (left = right)
C#
public static bool operator ==(
    Type left,
    Type right
)
Visual C++
public:
static bool operator ==(
    Type^ left, 
    Type^ right
)
F#
static let inline (=)
        left:Type * 
        right:Type  : bool

Parameters

left
Type: System..::.Type
The first object to compare.
right
Type: System..::.Type
The second object to compare.

Return Value

Type: System..::.Boolean
true if left is equal to right; otherwise, false.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker