c# - Properties are listed twice in variable, but not in class -



c# - Properties are listed twice in variable, but not in class -

so have simple class represents info database.

public class entitysynccontext { public entitysynccontext() { externalentities = new list<externalcontact>(); } public handledtype handledtype { get; set; } public contact entity { get; set; } public ilist<externalcontact> externalentities { get; set; } public bool hasconflict { get; set; } }

but when declare variable class, when set watch on while debugging see of properties listed above exist twice within variable.

entitysynccontext matchingcontext = new entitysynccontext();

does know how and/or why happens and/or how prepare it?

i have visual studio 2015 installed right behavior may different got me thinking couple of things.

look @ code here:

public interface ia { string stringa { get; } } public interface ib { string stringa { get; } } public class b { public string stringa { get; } } public class : b, ia, ib { public string stringa { { homecoming "a"; } } string ib.stringa { { homecoming "b"; } } }

here watching instance of class looks in visual studio 2015:

so thinking have either explicitly implemented interfaces have same properties, or hiding properties of base of operations class declaring properties same name in subclass, , visual studio 2013 either doesn't display type detail 2015 does, or have configured differently do.

c# visual-studio-2013

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -