diff --git a/binder/Generators/AstGenerator.cs b/binder/Generators/AstGenerator.cs index 73f6f0d..c7c35bf 100644 --- a/binder/Generators/AstGenerator.cs +++ b/binder/Generators/AstGenerator.cs @@ -669,6 +669,8 @@ namespace Embeddinator.Generators var accessMask = (fieldInfo.Attributes & FieldAttributes.FieldAccessMask); field.Access = ConvertFieldAttributesToAccessSpecifier(accessMask); + ManagedNames[field] = $"{fieldInfo.DeclaringType.FullName}:{fieldInfo.Name}"; + return field; } @@ -701,6 +703,8 @@ namespace Embeddinator.Generators property.SetMethod.Namespace = property.Namespace; } + ManagedNames[property] = $"{propertyInfo.DeclaringType.FullName}:{propertyInfo.Name}"; + return property; } }