Skip to content

Refactor extension class generation to support partial classes and full class names#58

Merged
mrtaikandi merged 1 commit intomainfrom
dev/fix-extension-classname
May 20, 2025
Merged

Refactor extension class generation to support partial classes and full class names#58
mrtaikandi merged 1 commit intomainfrom
dev/fix-extension-classname

Conversation

@mrtaikandi
Copy link
Copy Markdown
Owner

Refactor extension class generation to support partial classes and full class names to avoid name collisions

Code generation improvements:

  • Added a new GenerateFullExtensionClassNames option in CodeGeneratorOptions, allowing users to specify whether generated extension class names should include the target namespace for clarity. (src/MapTo/Configuration/CodeGeneratorOptions.cs: [1] [2] [3]
  • Changed generated extension classes to be partial, allowing for easier extension by users. (src/MapTo/Generators/ExtensionClassGenerator.cs: src/MapTo/Generators/ExtensionClassGenerator.csL36-R36)

@mrtaikandi mrtaikandi merged commit 0005aca into main May 20, 2025
1 check passed
@mrtaikandi mrtaikandi deleted the dev/fix-extension-classname branch May 20, 2025 08:35
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.

1 participant