Injects IDataErrorInfo or INotifyDataErrorInfo code into a class at compile time.