From a0dae073d24555028ad364d7f8665e30bb12c56a Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 2 Nov 2019 17:11:18 +0100 Subject: [PATCH] Model: Add 'Types' aggregate property --- Il2CppInspector/Il2CppModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Il2CppInspector/Il2CppModel.cs b/Il2CppInspector/Il2CppModel.cs index ec4e2c9..ad62158 100644 --- a/Il2CppInspector/Il2CppModel.cs +++ b/Il2CppInspector/Il2CppModel.cs @@ -4,6 +4,7 @@ All rights reserved. */ +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; @@ -24,6 +25,9 @@ namespace Il2CppInspector.Reflection // List of type usages that are initialized via pointers in the image public Dictionary TypesByVirtualAddress { get; } = new Dictionary(); + // Every type + public IEnumerable Types => new IEnumerable[] { TypesByDefinitionIndex, TypesByUsageIndex, TypesByVirtualAddress.Values }.SelectMany(t => t); + // List of all methods ordered by their MethodDefinitionIndex public MethodBase[] MethodsByDefinitionIndex { get; }