Hi i\'m working in a class library using C#, and i have some classes with some properties.
I just wanna know if i can add something to exclude some properties form t
With the PropertyInfo object you can examine the GetCustomAttributes of the property. So you could add attributes to your properties when you declare them, and then when you are reflecting against the properties, you can choose only the properties that are marked with the attributes you desire.
Of course if you are actually wanting to somehow prevent someone from reflectively getting your properties, this is not the solution you want.
Edit: I'm sorry you want GetCustomAttributes, fixed. See this: http://msdn.microsoft.com/en-us/library/kff8s254.aspx