Неявное преобразование "System.Collections.Generic.IEnumerable" в "object[]" невозможно - C#
Формулировка задачи:
public string AssemblyVersion
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyVersionAttribute));
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
} Решение задачи: «Неявное преобразование "System.Collections.Generic.IEnumerable" в "object[]" невозможно»
textual
Листинг программы
public Help()
: this(null)
{
}
Life mainForm;
public Help(Life frm)
{
InitializeComponent();
mainForm = frm;
this.Text = String.Format("О программе {0}", AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("Версия {0}", AssemblyVersion);
this.labelCopyright.Text = AssemblyCopyright;
this.labelCompanyName.Text = AssemblyCompany;
this.textBoxDescription.Text = AssemblyDescription;
}