Inheriting from generic WeakEventManager creates error -


i want make weakeventcollectionweaver bind multiple observablecollections together.

i inherit this:

public class weakeventcollectionweaver<t> :    weakeventmanager<observablecollection<t>,    notifycollectionchangedeventargs> { } 

but error:

cs1729 weakeventmanager<observablecollection<t>, notifycollectionchangedeventargs> not contain constructor takes 0 arguments

i looked , believe not have implement constructor. why error there?

it not possible inherit class. has private constructor (hence no default constructor), descendant classes cannot call it.

take @ source of class here:

https://referencesource.microsoft.com/#windowsbase/base/system/windows/weakeventmanagert.cs,a795c952f2e86713


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -