To hide a class member from intellisense
-
Hello Everybody, I have a class. I dont want a particular public class member/method to be listed in intellisense property. I have tried [EditorBrowsable(EditorBrowsableState.Never)] attribute. But for this, i have to have a property. And that member is now anyway displayed as property in intellisense. I dont see any difference even after commenting [EditorBrowsable(EditorBrowsableState.Never)] attribute. Can anybody explain me how this [EditorBrowsable(EditorBrowsableState.Never)] works? What is the exact purpose? Thanks for your response... -Saran
-
Hello Everybody, I have a class. I dont want a particular public class member/method to be listed in intellisense property. I have tried [EditorBrowsable(EditorBrowsableState.Never)] attribute. But for this, i have to have a property. And that member is now anyway displayed as property in intellisense. I dont see any difference even after commenting [EditorBrowsable(EditorBrowsableState.Never)] attribute. Can anybody explain me how this [EditorBrowsable(EditorBrowsableState.Never)] works? What is the exact purpose? Thanks for your response... -Saran
Have you used this like what MSDN Say's[^]
Navaneeth My Website
-
Have you used this like what MSDN Say's[^]
Navaneeth My Website
-
Yes... Replicated the same in my class too... But I am seeing the prorty displayed in intellisens regardless of [EditorBrowsable(EditorBrowsableState.Never)] attribute's presence.
Why do you not want it displayed in intellisense?
-
Why do you not want it displayed in intellisense?
Then what is the use of [EditorBrowsable(EditorBrowsableState.Never)] attribute... The description given in MSDN is -Saran
-
Then what is the use of [EditorBrowsable(EditorBrowsableState.Never)] attribute... The description given in MSDN is -Saran
Not complaining, just curious.