Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Improve Caliburn.Micro compatibility for multiple views
Browse files Browse the repository at this point in the history
Fix #132
  • Loading branch information
yck1509 committed Dec 9, 2014
1 parent eebe95d commit 45c1f0d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Confuser.Renamer/Analyzers/CaliburnAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public void Analyze(ConfuserContext context, INameService service, IDnlibDef def
service.SetCanRename(type, false);
service.SetCanRename(view, false);
}

// Test for Multi-view
string multiViewNs = type.Namespace + "." + type.Name.Replace("ViewModel", "");
foreach (var t in type.Module.Types)
if (t.Namespace == multiViewNs) {
service.SetCanRename(type, false);
service.SetCanRename(t, false);
}
}
}

Expand Down

0 comments on commit 45c1f0d

Please sign in to comment.