Il2CppGenericClassCompare.cpp 738 B

123456789101112131415161718192021222324
  1. #include "il2cpp-config.h"
  2. #include "il2cpp-class-internals.h"
  3. #include "Il2CppGenericClassCompare.h"
  4. #include "Il2CppGenericInstCompare.h"
  5. #include "Il2CppTypeCompare.h"
  6. namespace il2cpp
  7. {
  8. namespace metadata
  9. {
  10. bool Il2CppGenericClassCompare::operator()(const Il2CppGenericClass* gc1, const Il2CppGenericClass* gc2) const
  11. {
  12. return Compare(gc1, gc2);
  13. }
  14. bool Il2CppGenericClassCompare::Compare(const Il2CppGenericClass* gc1, const Il2CppGenericClass* gc2)
  15. {
  16. if (!Il2CppTypeEqualityComparer::AreEqual(gc1->type, gc2->type))
  17. return false;
  18. return Il2CppGenericInstCompare::Compare(gc1->context.class_inst, gc2->context.class_inst);
  19. }
  20. } /* namespace vm */
  21. } /* namespace il2cpp */