How do you programmatically enable Enterprise Keywords for a SharePoint 2010 list?
This is how you do it using the GUI:

Igor Philippov has a solution which uses reflection and adds the field to the items in the library but doesn't fully work - it doesn't show the Enterprise Keywords field when viewing/editing properties, and it doesn't check this checkbox. I'm not sure why, since it seems to do the exact same thing as the code-behind for the checkbox in the GUI (in Microsoft.SharePoint.Taxonomy.OM.CodeBehind.MetadataColSettings.OkButton_Click).
Specifically, when enabling Enterprise Keywords via the GUI, it seems that the Enterprise Keywords field is added to all the list's content types, but when doing it programmatically this way, the field is only added to the default content type.
Another solution is to simply add the Enterprise Keywords column to the list, but that has exactly the same drawbacks, right?
