Remove namespace from nested types
This commit is contained in:
parent
8c3f1f2b45
commit
c295d03078
|
@ -85,9 +85,10 @@ namespace de4dot.code.renamer {
|
|||
var checker = NameChecker;
|
||||
|
||||
if (newNamespace == null && oldNamespace != "") {
|
||||
if (!checker.isValidNamespaceName(oldNamespace)) {
|
||||
if (type.TypeDefinition.IsNested)
|
||||
newNamespace = "";
|
||||
else if (!checker.isValidNamespaceName(oldNamespace))
|
||||
newNamespace = state.createNamespace(oldNamespace);
|
||||
}
|
||||
}
|
||||
|
||||
string origClassName = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user