Skip to content

Commit

Permalink
Add Il2CppFieldDefinition::DeclaringType (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 authored Oct 19, 2024
1 parent a084026 commit e454c55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LibCpp2IL/Metadata/Il2CppFieldDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class Il2CppFieldDefinition : ReadableClass

public Il2CppFieldDefaultValue? DefaultValue => LibCpp2IlMain.TheMetadata?.GetFieldDefaultValue(this);

public Il2CppTypeDefinition DeclaringType => LibCpp2IlReflection.GetDeclaringTypeFromField(this);

public override string? ToString()
{
if (LibCpp2IlMain.TheMetadata == null)
Expand Down

0 comments on commit e454c55

Please sign in to comment.