asp.net.ph

String.Equals Method ( Object )

System Namespace   String Class


Determines whether this instance of String and a specified object, which must be a String, have the same value.

[ VB ]
<Serializable>
Overrides Overloads Public Function Equals ( _
   ByVal obj As Object _
) As Boolean

[ C# ]
[ Serializable ]
public override bool Equals (
   object obj
);

[ C++ ]
[ Serializable ]
public: bool Equals (
   Object* obj
);

[ JScript ]
public Serializable
override function Equals (
   obj : Object
) : Boolean;

Parameters

obj
An Object.

Return Value

true if obj is a String and its value is the same as this instance; otherwise, false.

Exceptions


Exception Type Condition
NullReferenceException This instance is a null reference ( Nothing in Visual Basic ).

Remarks

This method checks for value equality.

This 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