Skip to content

Add constructor that can override values of AllowMultipleDisposeCalls and AllowMultipleDisposeAttempts properties #35

@konard

Description

@konard

public Disposable(Action action)

At the moment the workaround is used:

public class DisposableWithMultipleCallsAllowed : Disposable
{
   public DisposableWithMultipleCallsAllowed(Disposal disposal) : base(disposal) { }
   protected override bool AllowMultipleDisposeCalls => true;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions