Browse Source

wrappers: add CLIAssembly.external property

master
Shiz 1 year ago
parent
commit
a05727c3a1
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      dotnet/wrappers.py

+ 5
- 1
dotnet/wrappers.py View File

@ -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):
@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