Suppose I have a class like:
public class MyClass{
public MyClass(){
...
}
...
}
then I can create a instance of the class like:
MyClass instance1 = new MyClass();
When debug the code, whatever the instance is, it is always go through same code. How can I identify if the instance is same with others especially for some .NET system object? For example, WCF Ria Service has a basic class DomainContext, how can I know if an instance of DomainContext is new or same for the application?