Single.Equality Operator
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a value that indicates whether two specified Single values are equal.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
Public Shared Operator = ( _
left As Single, _
right As Single _
) As Boolean
public static bool operator ==(
float left,
float right
)
Parameters
- left
Type: System..::.Single
The first value to compare.
- right
Type: System..::.Single
The second value to compare.
Return Value
Type: System..::.Boolean
true if left and right are equal; otherwise, false.
Remarks
The Equality method defines the equality operator for Single values.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0