Browse Source

wrappers: add CLIAssembly.external property

master
Shiz 2 years ago
parent
commit
a05727c3a1
  1. 6
      dotnet/wrappers.py

6
dotnet/wrappers.py

@ -2,7 +2,7 @@ import destruct @@ -2,7 +2,7 @@ import destruct
from .util import cached_property
from .common import CLIStreamType, CLIStreamIndex, CLITableType, CLITableIndex, CLITableRange, CLIToken, CLICodedToken
from .tables import CLITypeClassSemantics
from .tables import CLITypeClassSemantics, CLIAssemblyRefTable
from .code import determine_header
@ -246,6 +246,10 @@ class CLIClass(CLITableWrapper): @@ -246,6 +246,10 @@ class CLIClass(CLITableWrapper):
@register_wrapper(CLITableType.Assembly)
@register_wrapper(CLITableType.AssemblyRef)
class CLIAssembly(CLITableWrapper):
@property
def external(self):
return isinstance(self._raw, CLIAssemblyRefTable)
def __repr__(self):
return '<{}: {} (v{}.{}.{}.{})>'.format(
self.__class__.__name__, self.name,

Loading…
Cancel
Save