We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following classes:
class Source { public List<SourceChild> Child { get; set; } } class SourceChild { public string Id { get; set; } } class Destination { public List<DestinationChild> Child { get; set; } } class DestinationChild { public string Id { get; set; } }
I'd expect the compile to fail with the below configuration, but it passes; it fails when it actually tries to perform the work:
TypeAdapterConfig.GlobalSettings.RequireExplicitMapping = true; var config = TypeAdapterConfig<Source, Destination>.NewConfig(); config.Compile(); // Should fail here var source = new Source { Child = new List<SourceChild> { new SourceChild { Id = "MyId" } } }; _ = source.Adapt<Destination>(); // Actually fails here
The text was updated successfully, but these errors were encountered:
96ab098
No branches or pull requests
Given the following classes:
I'd expect the compile to fail with the below configuration, but it passes; it fails when it actually tries to perform the work:
The text was updated successfully, but these errors were encountered: