Skip to content

Commit 5f466a9

Browse files
Fixed aspect order
1 parent 16a3073 commit 5f466a9

File tree

2 files changed

+225
-225
lines changed

2 files changed

+225
-225
lines changed

tracer/build/_build/CodeGenerators/CallSitesGenerator.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ internal static void RetrieveCallSites(Dictionary<string, AspectClass> aspectCla
7676
string GetMethodName(MethodDefinition method)
7777
{
7878
var fullName = method.FullName;
79-
return fullName.Substring(fullName.IndexOf("::") + 2).Replace("<T>", "<!!0>");
79+
return fullName.Substring(fullName.IndexOf("::") + 2).Replace("<T>", "<!!0>").Replace("&", "");
8080
}
8181

8282
bool IsAspectClass(Mono.Cecil.CustomAttribute attribute)
@@ -249,11 +249,11 @@ namespace trace
249249
{
250250
""");
251251

252-
foreach (var aspectClass in aspectClasses.OrderBy(k => k.Key.ToString()))
252+
foreach (var aspectClass in aspectClasses.OrderBy(k => k.Key.ToString(), StringComparer.OrdinalIgnoreCase))
253253
{
254254
sb.AppendLine(Format(aspectClass.Key + aspectClass.Value.Subfix()));
255255

256-
foreach (var method in aspectClass.Value.Aspects.OrderBy(k => k.Key.ToString()))
256+
foreach (var method in aspectClass.Value.Aspects.OrderBy(k => k.Key.ToString(), StringComparer.OrdinalIgnoreCase))
257257
{
258258
sb.AppendLine(Format(" " + method.Key + method.Value.Subfix()));
259259
}

0 commit comments

Comments
 (0)