Skip to content

Add FieldType.FullName in CloneTo and Fix methods for Field - #424

Merged
KirillOsenkov merged 5 commits into
gluck:masterfrom
ricaun:develop-fix-field-name
Jul 9, 2026
Merged

KirillOsenkov merged 5 commits into
gluck:masterfrom
ricaun:develop-fix-field-name

Conversation

@ricaun

@ricaun ricaun commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

There are some possibility to have two fields with same Name and different type.

This PR updates:

  • The CloneTo method for field to check Name and FieldType.FullName already exists.
  • The Fix method for field to find the field using Name and FieldType.FullName.

Before only the Name was used.

Related to issue: #423

@ricaun

ricaun commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Oh I didn't expect a field with a type <PrivateImplementationDetails>/__StaticArrayInitTypeSize=6. 😅

@KirillOsenkov
KirillOsenkov merged commit 7333ea1 into gluck:master Jul 9, 2026
1 check passed
@KirillOsenkov

Copy link
Copy Markdown
Collaborator

Looks good to me, thanks!

@ricaun

ricaun commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Great, I gonna create a test scenario with prebuild assembly with multiple fields with same name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants