| 1234567891011121314151617181920212223242526272829303132 |
- #pragma once
- #include "BsMonoPrerequisites.h"
- #include <mono/jit/jit.h>
- namespace BansheeEngine
- {
- class BS_MONO_EXPORT MonoMethod
- {
- public:
- MonoObject* invoke(MonoObject* instance, void** params);
- /**
- * @brief Gets a thunk for this method. A thunk is a C++ like function
- * pointer that you can use for calling the method.
- *
- * @note This is the fastest way of calling managed code.
- */
- void* getThunk() const;
- CM::String getName() const;
- private:
- friend class MonoClass;
- friend class MonoProperty;
- MonoMethod(::MonoMethod* method);
- ::MonoMethod* mMethod;
- void* mThunk;
- };
- }
|