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

Unbreakable.AssemblyGuardException: Member System.Delegate.GetInvocationList is not allowed. #472

Keboo opened this issue Mar 6, 2020 · 1 comment


Copy link

@Keboo Keboo commented Mar 6, 2020

The following code which tries to use Delegate.GetInvocationList() does not run.

using System;
public class C {
    public static event Action BarEvent = delegate { };
    public static void Main() {
        foreach(Action d in BarEvent.GetInvocationList())
            BarEvent -= d;

This comment has been minimized.

Copy link

@ashmind ashmind commented Mar 20, 2020

Thanks for reporting! This is fair enough, I don't think there is a reason to block this one (though I'll check the allocations). No promise of any specific timeline though.

@ashmind ashmind added this to the n+36 milestone Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.