#1
|
|||
|
|||
Tips for fixing up decompiled .NET code?
I have decompiled a .NET binary with dnSpy and the resulting output has some strange things in it like this
Code:
public HouseType(sbyte id, string name, string unitTeamColor, string buildingTeamColor, [TupleElementNames(new string[] { "type", "teamColor" })] params ValueTuple<string, string>[] overrideTeamColors) { this.ID = id; this.Name = name; this.UnitTeamColor = unitTeamColor; this.BuildingTeamColor = buildingTeamColor; this.OverrideTeamColors = overrideTeamColors.ToDictionary(([TupleElementNames(new string[] { "type", "teamColor" })] ValueTuple<string, string> x) => x.Item1, ([TupleElementNames(new string[] { "type", "teamColor" })] ValueTuple<string, string> x) => x.Item2); } Code:
for (int i = 0; i < array2.Length; i++) { var <>f__AnonymousType = array2[i]; this.plugin.Map.Triggers.Add(<>f__AnonymousType.NewTrigger.Clone()); this.plugin.Map.Triggers.Remove(<>f__AnonymousType.OldTrigger); } Code:
[CompilerGenerated] internal static string <LoadINI>g__indexToType|20_1(IList<string> list, string index) { int num; if (!int.TryParse(index, out num) || num < 0 || num >= list.Count) { return list.First<string>(); } return list[num]; } |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help to fixing API-Calls | Nukacola | General Discussion | 6 | 05-11-2005 16:49 |
Import OS Fixing | MaRKuS-DJM | General Discussion | 31 | 07-16-2004 23:20 |
Fixing an EXE to not call a DLL? | Barry | General Discussion | 11 | 06-03-2004 00:37 |
Problem with fixing IAT | K3nny | General Discussion | 5 | 01-04-2004 19:26 |