Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Non-Generic Solution to KiotaDeserialization #436

Merged
merged 14 commits into from
Oct 28, 2024

Conversation

DerGuru
Copy link

@DerGuru DerGuru commented Oct 11, 2024

This code addition fulfills the request of Issue 210, where this was explicitly requested.

@dansmitt is a co-worker of mine and I thought, that this might be of relevance to more than just him.

I used the same Unit-Tests, as you were, modifying them just as much, to use the newly introduced method signatures.

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@DerGuru
Copy link
Author

DerGuru commented Oct 14, 2024

Okay .. @baywet
I took your comments to heart and split the base class into a factory and an interface.
I also hope to have fixed the whitespace issue.... weirdly, that was auto generated code...

I was also able, to remove the #pragma warning disable IL3050, which just needed some attributes added to the code. And since I don't like to have pre compiler directives spread all over the code, I added the Attribute as a privately nested class, for .NET < 8.
I hope, that is okay.

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making the changes!
A couple additional questions/comments.

baywet
baywet previously approved these changes Oct 15, 2024
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making the changes!

I also took the liberty of making a bunch of "cleanup" changes here.

@andrueastman for final review and merge

Copy link
Member

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good from my end. Will update version/release notes on getting clarification on duplicate code question.

@andrueastman andrueastman merged commit 75f6bd3 into microsoft:main Oct 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add function overloads with Type as parameter for KiotaSerializer.Deserialize<T>
4 participants