Skip to content

Consistent story around immutability/mutability #11

@andysturrock

Description

@andysturrock

The following code throws a System.Security.VerificationException : Operation could destabilize the runtime.:

public class WithList
{
    public WithList(List<int> list)
    {
        ListOfInt = list;
    }
    public List<int> ListOfInt { get; }
}

void BlowUp()
{
    List<int> list = new List<int>();
    var msg = new WithList(list);
    new Serialiser<WithList>().Serialise(msg);
}

I'll take a look but you might get there quicker :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions