   C#, array of events!
  Hi i was trying to figure out an easy way to implement an array of events.I tried; public sealed class EventHandlerList : IDisposable.But that didn't work as I had hoped.Later i solved it with a class:____________public class ProfileTypeInfo{   public string Name { get; set; }//Key   public ProfileViewModel SenderOwner { get; set; }   public event EventHandler<ProfileTypeChangedEventArgs> ProfileTypeChanged;   public void OnProfileTypeChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)//Gör static   {  var SenderOwner = (ProfileViewModel)sender;  if (ProfileTypeChanged != null)  { ProfileTypeChanged(SenderOwner, new ProfileTypeChangedEventArgs((ReadOnlyCollection<ProfileType>)e.OldValue,  (ReadOnlyCollection<ProfileType>)e.NewValue));  }   }    }}____________ProfileTypeChangedEventArgs defined elsewhere.And then I took an HashTable and stored instances of the ProfileTypeInfo class,and the name as key.  _ProfileTypeChanged[profileTypePropertyName] = new ProfileTypeInfo { Name = profileTypePropertyName };And retrieved it with: (_ProfileTypeChanged[Key] as ProfileTypeInfo).ProfileTypeChanged -= EventFunction;Does anyone think this solution will present any future problems?   