diff --git a/autoapi/domains/dotnet.py b/autoapi/domains/dotnet.py index e03b12a..9eb5285 100644 --- a/autoapi/domains/dotnet.py +++ b/autoapi/domains/dotnet.py @@ -168,6 +168,7 @@ class DotNetBase(AutoAPIBase): self.items = obj.get('items', []) self.children = [] self.item_map = defaultdict(list) + self.inheritance = [] # Syntax example and parameter list syntax = obj.get('syntax', None) @@ -188,6 +189,11 @@ class DotNetBase(AutoAPIBase): 'desc': param.get('description', '') }) + # Inheritance + # TODO Support more than just a class type here, should support enum/etc + self.inheritance = [DotNetClass({'id': iobj['id'], 'name': iobj['name']}) + for iobj in obj.get('inheritance', [])] + def __str__(self): return '<{cls} {id}>'.format(cls=self.__class__.__name__, id=self.id)