S
Steve B.
Hi,
I'm trying to get the company attribute of an assembly (CF 1.0) using this
code :
public string AssemblyCompany
{
get
{
Attribute attr = Attribute.GetCustomAttribute(
this._assembly,
typeof(AssemblyCompanyAttribute)
);
if(attr != null)
{
return ((AssemblyCompanyAttribute)attr).Company;
}
else
{
return null;
}
}
}
This code throw a "NotSupportedException" on the line with
..GetCustomAttribute...
What is wrong ?
Thank,s
Steve
I'm trying to get the company attribute of an assembly (CF 1.0) using this
code :
public string AssemblyCompany
{
get
{
Attribute attr = Attribute.GetCustomAttribute(
this._assembly,
typeof(AssemblyCompanyAttribute)
);
if(attr != null)
{
return ((AssemblyCompanyAttribute)attr).Company;
}
else
{
return null;
}
}
}
This code throw a "NotSupportedException" on the line with
..GetCustomAttribute...
What is wrong ?
Thank,s
Steve