VS Intellisense: can you hide extension methods?

前端 未结 3 1530
花落未央
花落未央 2021-01-11 12:49

By default Visual Studio displays all members and its extension methods for a type in intellisense.

Sometimes I would like to hide the extension methods to make it e

3条回答
  •  萌比男神i
    2021-01-11 13:18

    In theory you could do this with the appropriate decorator attribute*, but googling this it seems it's bugged, with the fix awaiting a service pack presumably.

    * [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]

提交回复
热议问题