Skip to content

Primitive equality in interface#683

Merged
SteveDunn merged 8 commits intomainfrom
primitive-equality-in-interface
Oct 20, 2024
Merged

Primitive equality in interface#683
SteveDunn merged 8 commits intomainfrom
primitive-equality-in-interface

Conversation

@SteveDunn
Copy link
Copy Markdown
Owner

Fixes #682

Introduces conditional logic to the `WriteStaticAbstracts` method to omit equality operators to primitives based on global configuration settings. A new test case is added to validate the behavior when primitive equality generation is set to omit.
Introduced Directory.Build.props files to the samples and tests directories. These files set the LangVersion to preview and suppress NU1903 warnings to streamline builds.
Corrected grammatical errors and improved formatting consistency in the FAQ document. Adjustments include punctuation fixes, format standardization, and clearer phrasing for better readability.
Utilize the new Util.FormatSource method to format generated source code consistently in both WriteSystemTextJsonConverterFactories and WriteOpenApiSchemaCustomizationCode. This ensures the generated code follows a standardized whitespace convention for better readability and maintainability.
@SteveDunn SteveDunn merged commit 57d1d84 into main Oct 20, 2024
@SteveDunn SteveDunn deleted the primitive-equality-in-interface branch October 20, 2024 13:06
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.

Omitting primitive equality breaks interface generation

1 participant