public TargetAddress MonoClassGetMethod(TargetMemoryAccess memory, TargetAddress klass, int index) { TargetAddress methods = memory.ReadAddress ( klass + MonoMetadataInfo.KlassMethodsOffset); if (methods.IsNull) throw new TargetException (TargetError.ClassNotInitialized); methods += index * memory.TargetAddressSize; return memory.ReadAddress (methods); }