Click here to Skip to main content
15,908,455 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how argument of ReferenceEquals(object obj1,object obj2) works so by DateTime.ReferenceEquals() we can store the data in one of the control textbox.
Posted
Comments
[no name] 31-Mar-14 6:52am    
You need to take some classes, read a book or find some tutorials. You are not going to learn programming one vague question at a time. And you are probably really close to getting banned about now.

1 solution

Try the msdn link - http://msdn.microsoft.com/en-us/library/system.object.referenceequals%28v=vs.110%29.aspx[^].

"When comparing value types. If objA and objB are value types, they are boxed before they are passed to the ReferenceEquals method. This means that if both objA and objB represent the same instance of a value type, the ReferenceEquals method nevertheless returns false, as the following example shows.

When comparing strings. If objA and objB are strings, the ReferenceEquals method returns true if the string is interned. It does not perform a test for value equality. In the following example, s1 and s2 are equal because they are two instances of a single interned string. However, s3 and s4 are not equal, because although they are have identical string values, that string is not interned. "
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900