How can I prevent a public class that provides extension methods from appearing in Intellisense?

后端 未结 4 504
名媛妹妹
名媛妹妹 2021-01-21 08:57

Is there any way to \'hide\' the name of a class, whose sole purpose is to provide extension methods, from Intellisense?

I would like to remove the class name from the

4条回答
  •  不知归路
    2021-01-21 09:28

    I expected that you could to this with the EditorBrowsable attribute:

    [EditorBrowsable(EditorBrowsableState.Never)]
    static class MyExtensions { }
    

    Unfortunately this did not seem to work.

提交回复
热议问题