asp.net.ph

String.Equals Method ( String, String )

System Namespace   String Class


Determines whether two specified String objects have the same value.

[ VB ]
<Serializable>
Overloads Public Shared Function Equals ( _
   ByVal a As String, _
   ByVal b As String _
) As Boolean

[ C# ]
[ Serializable ]
public static bool Equals (
   string a,
   string b
);

[ C++ ]
[ Serializable ]
public: static bool Equals (
   String* a,
   String* b
);

[ JScript ]
public Serializable
static function Equals (
   a : String,
   b : String
) : Boolean;

Parameters

a
A String or a null reference ( Nothing in Visual Basic ).
b
A String or a null reference ( Nothing in Visual Basic ).

Return Value

true if the value of a is the same as the value of b; otherwise, false.

Remarks

The comparison is case-sensitive.

See Also

String Members   String.Equals Overload List   Object   Compare   CompareOrdinal   CompareTo Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph