Model: Change CustomAttributeData.VirtualAddress to be non-nullable

This commit is contained in:
Katy Coe
2020-08-09 20:44:13 +02:00
parent 10b6d22edf
commit ea8a18353a
4 changed files with 7 additions and 3 deletions

View File

@@ -55,6 +55,8 @@ namespace Il2CppInspector.Reflection
public static string ToAddressString(this (ulong start, ulong end)? address) => ToAddressString(address?.start ?? 0) + "-" + ToAddressString(address?.end ?? 0);
public static string ToAddressString(this (ulong start, ulong end) address) => ToAddressString(address.start) + "-" + ToAddressString(address.end);
// C# string literal escape characters
// Taken from: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/strings/#regular-and-verbatim-string-literals
private static Dictionary<char, string> escapeChars = new Dictionary<char, string> {