//Nullify collection arrays void FrequencyCounter_Detach(object sender, DetachEventArgs e) { inputs = null; }
//Initialize collection arrays void FrequencyCounter_Attach(object sender, AttachEventArgs e) { inputs = new FrequencyCounterInputCollection(this, 2); }