How to get all the members of the .Net standard provided types?

Sylvain SANCHEZ EGEA 20 Reputation points
2023-05-11T16:27:47.2966667+00:00

Hello all,

I was trying to get the list of all the C# interfaces included in the .Net version I was using (through the object browser). And then I realized this wondering was hiding a rookie shortcoming: How can I get a list of all the members of any system/.Net types through the object browser? Is even the Object Browser suited for that?

It is not easy to find out if the Object Browser can help me because it is so full of stuff, I'm not sure to know where I could find a possible existing standard interfaces list in it.

The only thing I could find to approach the solution is the "peek definition" contextual menu and the "intellisense proposals":

User's image

I can indeed get the list of al the .Net interfaces this way. But it's not ideal cause I can only pick an item here with no information about membership, inheritance, etc. I'm also implicitly doing the assumption that all interfaces start with "I", but if I am looking for an Enumerations, Classes or others integrated types, this trick does not work.

Thank you for your help,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,526 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,766 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiale Xue - MSFT 41,426 Reputation points Microsoft Vendor
    2023-05-12T06:36:28.37+00:00

    Hi @Sylvain SANCHEZ EGEA , Welcome to Microsoft Q&A.

    You only need to use the shortcut keys CTRL+W+J correctly in the project, and then select the Interface, Enumerations, Classes, etc. you want to find.

    Interfaces basically start with I.

    5-12

    For the related source code of .Net Framework, you can refer to this website. Reference Source

    Best Regards,

    Jiale


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful