Go to Definition of class only showing public members
问题 When I right click on a class (that is part of an third party assembly - not code I have written) in Visual Studio and select "Go to Definition", I can see all the methods, properties etc of the class. I notice all these are all public and no private (or any other level of access) members are shown. Does this feature only show public members of the class? 回答1: You can find the answer on the doc page: When you try to run the Go To Definition or Peek Definition command for types or members that