Skip to content
#

dot-net

dotnet logo

.NET is a free, cross-platform, open source developer platform for building many different types of applications.

Here are 460 public repositories matching this topic...

pappe82
pappe82 commented Feb 24, 2021

A "normal" event on an instance ignores null subscriptions. If I do so on a substituted interface, a null subscription leads to an exception. I have a not so nice legacy code with different listeners to an event an one class that does null-attach internally under some conditions, would be nice if this behaviour would be able to be tested as well. Example code for the problem:

        publ

Created by Microsoft

Released February 13, 2002

Organization
dotnet
Website
dotnet.microsoft.com
Wikipedia
Wikipedia