I created a list definition created from visual studio. I also have an event receiver specified along with the listtemplate feature. The idea was to have event receiver registered for all lists created from this definition. List and event receiver is working as expected (even for new lists created).
I noticed today that, if I access the SPList.EventReceivers.Count (via powershell/object model/ SP Manager), the count is always 0. But if I create new event receiver (new project) and bind it to the list, the assemebly shows up in SPList.EventReceivers
So my question is if I have a custom list definition with an event receiver why is the SPList.EventReceivers.Count 0 even though there is an event receiver attached to it.
Edit: Also verified using SharePoint Manager tool.