Skip to content
Discussion options

You must be logged in to vote

Related to #99308 and https://learn.microsoft.com/dotnet/api/system.windows.weakeventmanager .

Introduce a new type in the .NET core runtime called WeakDelegate.

It would just be some wrapper around WeakReference<TDelegate>. The composition wouldn't be a new type.

Proposed C# Syntax Options

This will definitely not happen. Even WeakReference is not a first class concept in the type system.

There was already a type named WeakDelegate implemented in the .NET Micro Framework. Since that framework is discontinued and the implementation was a specialized workaround for small embedded systems, this proposal seeks a first-class integration into the modern .NET core runtime.

If there is no …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by salarcode
Comment options

You must be logged in to vote
1 reply
@huoyaoyuan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants