Thread
:
=== operator in c#
View Single Post
#
9
(
permalink
)
November 8th, 2007, 05:14 AM
samjudson
Friend of Wrox
Points: 4,453, Level: 28
Activity: 61%
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 Posts
Another option might be the Object.ReferenceEquals method, depending on what you are trying to achieve.
if( Object.ReferenceEquals(obj1, obj2) )
{
// true if obj1 and obj2 are references to the same object.
}
/- Sam Judson : Wrox Technical Editor -/
samjudson
View Public Profile
Visit samjudson's homepage!
Find all posts by samjudson