You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to: Use a Dictionary to Store Event Instances (C# Programming Guide)
ms.date
07/20/2015
ms.prod
.net
ms.technology
devlang-csharp
ms.topic
article
helpviewer_keywords
events [C#], storing instances in a Dictionary
ms.assetid
9512c64d-5aaf-40cd-b941-ca2a592f0064
caps.latest.revision
16
author
BillWagner
ms.author
wiwagn
How to: Use a Dictionary to Store Event Instances (C# Programming Guide)
One use for accessor-declarations is to expose many events without allocating a field for each event, but instead using a Dictionary to store the event instances. This is only useful if you have many events, but you expect most of the events will not be implemented.