Во время рефакторинга я добавил параметр типа MyControl для общего типа, класс, полученный из UserControl. Итак, мой класс теперь MyControl<T>.
Now я get an error at runtime stating that the embedded resource file MyControl`1.resources cannot be found. A quick look with .NET Reflector shows that the resource file is actually called MyControl.resources, without the `1.
В начале метода MyControl<T>.InitializeComponent есть эта строка, которая, вероятно, вызывает проблемы:
System.ComponentModel.ComponentResourceManager resources =
new System.ComponentModel.ComponentResourceManager(
typeof(MyControl<>));
Как заставить ComponentResourceManager использовать встроенный файл ресурсов MyControl.resources? Другие способы решения этой проблемы также приветствуются.