Remove namespace from nested types

This commit is contained in:
de4dot 2011-12-25 23:03:53 +01:00
parent 8c3f1f2b45
commit c295d03078

View File

@ -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;