> For the complete documentation index, see [llms.txt](https://sneakyevil.gitbook.io/il2cpp-resolver/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sneakyevil.gitbook.io/il2cpp-resolver/utils/fetching-class-method.md).

# Fetching class method

### Via class name:

```cpp
void* m_pMethod = IL2CPP::Class::Utils::GetMethodPointer("ClassName", "MethodName");
```

### Via class pointer:

```cpp
void* m_pClass = IL2CPP::Class::Find("ClassName");
void* m_pMethod = IL2CPP::Class::Utils::GetMethodPointer(m_pClass, "MethodName")
```

### Via fetched class:

[Fetching & filtering classes](https://app.gitbook.com/s/-MhpfJ6-U5qHeGcGvWGQ/c/P4k3lM4qj8pfm5pyolmN/utils/fetching-and-filtering-classes)

```cpp
void* m_pMethod = IL2CPP::Class::Utils::FilterClassToMethodPointer(&m_vClasses, "MethodName");
```
