J
julien
Hello,
my program loads a couple of DLLs. I use System.Reflection to obtain
information about them.
I a DLL, I have:
[assembly:AssemblyTitle("First plugin")]
[assembly:AssemblyCompany("MySelf")]
[assembly:AssemblyProduct("My first plugin")]
I tried to retrive these information in my program. RIght now, I can get
the types:
Object[] myAttributes = asm.GetCustomAttributes(false); //asm est un
Assembly
for(int i = 0; i < myAttributes.Length; i++)
{
Console.WriteLine("attribute {0}", myAttributes);
}
=>
attribute System.Reflection.AssemblyProductAttribute
attribute System.Reflection.AssemblyCompanyAttribute
attribute System.Reflection.AssemblyTitleAttribute
But then I'm not able to get the values ("MySelf", "First plugin", ...).
Thank you
Julien
my program loads a couple of DLLs. I use System.Reflection to obtain
information about them.
I a DLL, I have:
[assembly:AssemblyTitle("First plugin")]
[assembly:AssemblyCompany("MySelf")]
[assembly:AssemblyProduct("My first plugin")]
I tried to retrive these information in my program. RIght now, I can get
the types:
Object[] myAttributes = asm.GetCustomAttributes(false); //asm est un
Assembly
for(int i = 0; i < myAttributes.Length; i++)
{
Console.WriteLine("attribute {0}", myAttributes);
}
=>
attribute System.Reflection.AssemblyProductAttribute
attribute System.Reflection.AssemblyCompanyAttribute
attribute System.Reflection.AssemblyTitleAttribute
But then I'm not able to get the values ("MySelf", "First plugin", ...).
Thank you
Julien