dotnet / dotnet/vblang

Support + and - for delegate combine and remove

Open
#128 0 comments 0 reactions 0 assignees View on GitHub
Proposal
Dominant language
No language data
Stars
328
Forks
71
PR merge metrics
No merged PRs in 30d

Description

Today in VB if you want to combine delegates or remove them you have to use shared methods on the delegate type, which are also loosely typed. We could support + and - like C# for combining two delegate invocation lists or removing a delegate from the invocation list of another. `Option Strict` users have requested this for a while.

Note: This proposal is for combining **delegates** not for using += and -= for event handler registration and removal. VB already has AddHandler and RemoveHandler for this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.