Use ToGenericInstSig() ext method
This commit is contained in:
parent
c7f4bc83f1
commit
ce6659510e
|
@ -50,7 +50,7 @@ namespace de4dot.code {
|
||||||
var ts = typeRef as TypeSpec;
|
var ts = typeRef as TypeSpec;
|
||||||
if (ts == null)
|
if (ts == null)
|
||||||
return typeRef;
|
return typeRef;
|
||||||
var gis = ts.TypeSig.RemovePinnedAndModifiers() as GenericInstSig;
|
var gis = ts.ToGenericInstSig();
|
||||||
if (gis == null || gis.GenericType == null)
|
if (gis == null || gis.GenericType == null)
|
||||||
return typeRef;
|
return typeRef;
|
||||||
return gis.GenericType.TypeDefOrRef;
|
return gis.GenericType.TypeDefOrRef;
|
||||||
|
|
|
@ -237,7 +237,7 @@ namespace de4dot.code.renamer.asmmodules {
|
||||||
var ts = typeRef as TypeSpec;
|
var ts = typeRef as TypeSpec;
|
||||||
if (ts == null)
|
if (ts == null)
|
||||||
return typeRef;
|
return typeRef;
|
||||||
var gis = ts.TypeSig.RemovePinnedAndModifiers() as GenericInstSig;
|
var gis = ts.ToGenericInstSig();
|
||||||
if (gis == null || gis.GenericType == null)
|
if (gis == null || gis.GenericType == null)
|
||||||
return typeRef;
|
return typeRef;
|
||||||
return gis.GenericType.TypeDefOrRef;
|
return gis.GenericType.TypeDefOrRef;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user