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

Add ability to customize default implementation of bonded<T> in C# #153

Closed
wants to merge 3 commits into from

Conversation

alexsatch
Copy link
Contributor

Add ability to specify custom implementations of bonded<T> given:

  • instance of T
  • pair of reader and RuntimeSchema

Fixes the inability to support custom Serializer/Deserializer/Cloner/Transcoder within bonded<T>

@chwarr
Copy link
Member

chwarr commented Apr 14, 2016

The AppVeyor build appears to have failed during git clone of the rapidjson submodule. I was able to clone this fine just minutes ago. Let's see what happens during the next CI run.

We still need to figure out the Travis CI build issue (issue #154), so this won't get merged until then anyway. I'll look into these failures tomorrow or find someone to help me.

@chwarr
Copy link
Member

chwarr commented Apr 16, 2016

We've figure out the Mono test failures. lalo is working on a fix. Details in #154.



/// <summary>
/// Create a cloner that makes clones of the same type SourceT as source objects.
Copy link
Member

@chwarr chwarr Apr 16, 2016

Choose a reason for hiding this comment

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

  • Minor: in the doc comment's let's make sure that we're using see or paramref or typeparamref and so on when referring to other types or parameters.
    This change will need to be made in a number of places across a number of files.

@chwarr
Copy link
Member

chwarr commented Apr 16, 2016

Heads up that this change and #146 are very likely to conflict with each other. I'll merge them in the order that the get completed in, so consider this an incentive to respond to feedback quickly. :-)

@alexsatch
Copy link
Contributor Author

Rebasing my changes on top of a9c4d78

/// </summary>
private class CustomTransformFactory
{
public static readonly CustomTransformFactory Default = new CustomTransformFactory();
Copy link
Member

@chwarr chwarr Apr 18, 2016

Choose a reason for hiding this comment

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

  • Minor: Instance instead of Default, as there's no way to create a custom one of these.

@chwarr
Copy link
Member

chwarr commented Apr 18, 2016

Thanks. Just a few more comments to be addressed.

@chwarr
Copy link
Member

chwarr commented Apr 18, 2016

LGTM. Will merge this when CI passes.

@chwarr chwarr closed this in 56b5914 Apr 19, 2016
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.

3 participants