Add getModuleAttribute()
This commit is contained in:
parent
8adf6ba5e2
commit
bfcd42804e
|
@ -691,6 +691,11 @@ namespace de4dot.code.deobfuscators {
|
||||||
return list.Count == 0 ? null : list[0];
|
return list.Count == 0 ? null : list[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected CustomAttribute getModuleAttribute(TypeReference attr) {
|
||||||
|
var list = new List<CustomAttribute>(DotNetUtils.findAttributes(module, attr));
|
||||||
|
return list.Count == 0 ? null : list[0];
|
||||||
|
}
|
||||||
|
|
||||||
protected bool hasMetadataStream(string name) {
|
protected bool hasMetadataStream(string name) {
|
||||||
foreach (var stream in module.MetadataStreams) {
|
foreach (var stream in module.MetadataStreams) {
|
||||||
if (stream.Name == name)
|
if (stream.Name == name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user