Skip to content

Could not find a copier for type <>z__ReadOnlyArray`1[IFoo]. #9032

@Jens-G

Description

@Jens-G

Using Orleans 8 I got this error message above

Could not find a copier for type <>z__ReadOnlyArray`1[IFoo].

at a rather simple call

await bar.AddFoo([this]);

Both bar and foo (this) are grains.
I learned that the z__ReadOnlyArray type is Roslyn generated for array literals, which unfortunately seems to imply that I can't do

[assembly: GenerateCodeForDeclaringAssembly(typeof(z__ReadOnlyArray))]

as recommended elsewhere (or maybe I'm just doing it wrongly).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions