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

Rework deserializer #831

Merged
merged 100 commits into from
Mar 1, 2023
Merged

Rework deserializer #831

merged 100 commits into from
Mar 1, 2023

Conversation

danielcweber
Copy link
Contributor

@danielcweber danielcweber commented Jan 27, 2023

IGremlinQueryFragmentDeserializer switches its Deserialize signature from returning an object? (where, when null is returned, it is unclear whether deserialization failed or null is the actual return value) to a bool(...out object? value) signature, like for framework Try... methods. Boxing still occurs, however, we add some syntactic sugar extensions to get typed returns. These are called like TryDeserialize<TFragmentType>().From(serializedValue, environment). This also works for type instances: TryDeserialize(type).From(serializedValue, environment).

github-actions bot pushed a commit that referenced this pull request Feb 14, 2023
@github-actions github-actions bot mentioned this pull request Feb 14, 2023
github-actions bot pushed a commit that referenced this pull request Feb 14, 2023
@github-actions github-actions bot mentioned this pull request Feb 14, 2023
@danielcweber danielcweber added this pull request to the merge queue Mar 1, 2023
Merged via the queue into main with commit e0105c3 Mar 1, 2023
@danielcweber danielcweber deleted the ReworkDeserializer branch March 1, 2023 09:42
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.

None yet

1 participant