Is there an attribute that hides a member (specifically a property) from typeof(MyType).GetProperties() in .net?
I’m looking for a quick fix – i.e. not creating custom attributes etc..
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
Reflection allows one to see everything, including members marked private.
(In the end reflection uses the same metadata that the CLR, including the JIT, uses.)