GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — AOT formatter should be more flexible for member/parameter types · Issue #1851 · MessagePack-CSharp/MessagePack-CSharp Closed Milestone DescriptionThe generated AOT formatter is invalid for the following class: [SerializationConstructor] public DiscoveredParts(IEnumerable<ComposablePartDefinition> parts, IEnumerable<PartDiscoveryException> discoveryErrors) { this.Parts = ImmutableHashSet.CreateRange(parts); this.DiscoveryErrors = ImmutableList.CreateRange(discoveryErrors); } [Key(0)] public ImmutableHashSet<ComposablePartDefinition> Parts { get; private set; } [Key(1)] public ImmutableList<PartDiscoveryException> DiscoveryErrors { get; private set; } The formatter is correct when the parameter types match the member types, but it would be great if the formatter could deal with the parameter types being different from the member types, particularly when the member type is assignable to the parameter type (although the reverse would also be great to support, where the deserializer would just create the more derived type). Activity
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |