GenericContainer.cpp 567 B

12345678910111213141516171819
  1. #include "il2cpp-config.h"
  2. #include "GenericContainer.h"
  3. #include "MetadataCache.h"
  4. namespace il2cpp
  5. {
  6. namespace vm
  7. {
  8. Il2CppClass* GenericContainer::GetDeclaringType(Il2CppMetadataGenericContainerHandle handle)
  9. {
  10. return MetadataCache::GetContainerDeclaringType(handle);
  11. }
  12. Il2CppMetadataGenericParameterHandle GenericContainer::GetGenericParameter(Il2CppMetadataGenericContainerHandle handle, uint16_t index)
  13. {
  14. return MetadataCache::GetGenericParameterFromIndex(handle, index);
  15. }
  16. } /* namespace vm */
  17. } /* namespace il2cpp */