[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAML→XAML decompile: fix nested Type names & MarkupExtension handling #188

Merged
merged 9 commits into from
Apr 26, 2023
Prev Previous commit
Next Next commit
change local variable name
  • Loading branch information
glenn-slayden authored Apr 26, 2023
commit 2a9674c15962ce3121979cbacf06ef1071b498d8
4 changes: 2 additions & 2 deletions Extensions/dnSpy.BamlDecompiler/XamlContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ void BuildPIMappings(BamlDocument document) {

static string NestedReflectionName(ITypeDefOrRef type, out string clrNs) {
var name = type.ReflectionFullName;
while (type.DeclaringType is ITypeDefOrRef t2)
type = t2;
while (type.DeclaringType is ITypeDefOrRef declaringType)
type = declaringType;
clrNs = type.ReflectionNamespace;
name = name.Substring(clrNs.Length + 1);
return name;
Expand Down