{"id":4243,"date":"2014-03-30T09:25:26","date_gmt":"2014-03-30T09:25:26","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-do-i-find-the-interface-inheritance-hierarchy-for-a-type-collection-of-common-programming-errors\/"},"modified":"2014-03-30T09:25:26","modified_gmt":"2014-03-30T09:25:26","slug":"how-do-i-find-the-interface-inheritance-hierarchy-for-a-type-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-do-i-find-the-interface-inheritance-hierarchy-for-a-type-collection-of-common-programming-errors\/","title":{"rendered":"How do I find the Interface Inheritance Hierarchy For a type?-Collection of common programming errors"},"content":{"rendered":"<p>My purpose is to find out if a class implements an interface directly. In the example below, class B implements interface IB and interface IB implements IA.<\/p>\n<p>How do I find out the inheritance hierarchy? When we view a type in Object Browser, it shows a detailed hierarchy. How can I achieve similar result?<\/p>\n<pre><code>interface IA\n{\n    string Member1 { get;set; }\n}\n\ninterface IB : IA\n{\n    string Member2 { get; set; }\n}\n\nclass B : IB\n{\n    public string Member1 { get; set; }\n    public string Member2 { get; set; }\n}\n<\/code><\/pre>\n<p><strong>Reflector Screenshot<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/img571.imageshack.us\/img571\/7485\/49211426.png\" \/><\/p>\n<p>In the screenshot taken from reflector it shows the hierarchy of the interfaces as well.<\/p>\n<p>How can I find out the interface hierarchy for a Type.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My purpose is to find out if a class implements an interface directly. In the example below, class B implements interface IB and interface IB implements IA. How do I find out the inheritance hierarchy? When we view a type in Object Browser, it shows a detailed hierarchy. How can I achieve similar result? interface [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4243","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4243"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4243\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}