- Home /
 
 
               Question by 
               Gabe-Tucker · Nov 30, 2019 at 07:54 PM · 
                c#scripting problemscripting beginnerbeginner  
              
 
              How would I make a ListChangedEvent?
 using System;
 using System.ComponentModel;
 
 public class InfoManager : MonoBehaviour
 {
     private event ListChangedEventHandler ListChanged(object sender, ListChangedEventArgs args)
     {
         //event code
     }
 }
 
               So I gave it a shot, but the parentheses give the error, cannot specify constructor arguments in declaration. What did I do wrong? I'm a beginner, and haven't been able to figure this one out. Thanks in advance!
               Comment
              
 
               
              Answer by Larry-Dietz · Nov 30, 2019 at 11:43 PM
List doesn't throw events as far as I know.
However, I did find the following, where someone created something to do what you are looking for...
Take a look at this and see if it helps...
Your answer