View Single Post
  #9 (permalink)  
Old November 8th, 2007, 05:14 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 4,453, Level: 28
Points: 4,453, Level: 28 Points: 4,453, Level: 28 Points: 4,453, Level: 28
Activity: 61%
Activity: 61% Activity: 61% Activity: 61%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 Posts
Default

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 -/
Reply With Quote