Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Mono method picking by parameter

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 475

Joined: 09 May 2003
Posts: 25980
Location: The netherlands

PostPosted: Sun Aug 02, 2026 5:55 am    Post subject: Mono method picking by parameter Reply with quote

If a class has multiple methods with the same name you can pick between the class by providing the parameters

for example : System.Net.HttpListener:Close() and System.Net.HttpListener:Close(bool force) will both give a different address

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 98

Joined: 14 Jul 2007
Posts: 3416

PostPosted: Sun Aug 02, 2026 6:11 pm    Post subject: Reply with quote

And if they have they take the same parameters, you can pick based on the return type.
How do you get the base address of the picked method though?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

Joined: 09 May 2003
Posts: 25980
Location: The netherlands

PostPosted: Sun Aug 02, 2026 10:48 pm    Post subject: Reply with quote

you just use it like that in a script or use getAddress('System.Net.HttpListener:Close(bool force)')

there's no return type filtering , only parameters. In the edge case of no different parameters and return type only , use lua

I'm not sure if this is what you're referring to, but if the class is a generic class with methods returning T, you can obtain the address of the method using [TypeYouWant]

e.g:
Spine.ExposedList`1+Enumerator[System.Int32]:get_Current

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites