471,325 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Refection problems

Hello ,
I would like to ask about the following issue:

I am activating this code after i created the InitializationAttribute
and added it above objects:

PropertyInfo[] properties = this.GetType().GetProperties();
foreach (PropertyInfo property in properties)
{
object[] attributes =
property.GetCustomAttributes(typeof(Initialization Attribute),true);
}

I get an empty list of object[] attributes although I have objects
which are signed with this attribute in code.
Why is that?
Thank u!

*** Sent via Developersdex http://www.developersdex.com ***
Apr 9 '08 #1
0 962

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jerome Lefebvre | last post: by
14 posts views Thread by Jim Hubbard | last post: by
5 posts views Thread by Corky | last post: by
2 posts views Thread by Ellen Graves | last post: by
reply views Thread by Sergistm | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.