Il2CppGenericMethodCompare.cpp 675 B

1234567891011121314151617181920212223
  1. #include "il2cpp-config.h"
  2. #include "il2cpp-class-internals.h"
  3. #include "Il2CppGenericMethodCompare.h"
  4. #include "Il2CppGenericContextCompare.h"
  5. namespace il2cpp
  6. {
  7. namespace metadata
  8. {
  9. bool Il2CppGenericMethodCompare::operator()(const Il2CppGenericMethod* m1, const Il2CppGenericMethod* m2) const
  10. {
  11. return Equals(m1, m2);
  12. }
  13. bool Il2CppGenericMethodCompare::Equals(const Il2CppGenericMethod* m1, const Il2CppGenericMethod* m2)
  14. {
  15. if (m1->methodDefinition != m2->methodDefinition)
  16. return false;
  17. return Il2CppGenericContextCompare::Compare(&m1->context, &m2->context);
  18. }
  19. } /* namespace vm */
  20. } /* namespace il2cpp */