0

I'm new to Windows Forms. I'm not fully understanding why can't I see methods definitions? Am I only allowed to look at declarations?

For example, there is

public class ListBox : ListControl

I want to see how its method is working(source code, not Microsoft comments):

public override string ToString();

I only see this definition and when I'm pressing "Go to definition", it transfers me to this declaration.

Can someone please explain is System.Windows.Forms code is "hidden" ? Can someone describe what's the idea?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Aremyst
  • 1,480
  • 2
  • 19
  • 33
  • 1
    Possible duplicate of [Browsing the .NET Framework source code from Visual Studio](http://stackoverflow.com/questions/9695569/browsing-the-net-framework-source-code-from-visual-studio) – user Feb 25 '16 at 16:18

2 Answers2

1

.net is closed source so you cant see exact codes, not only winforms you cant see any class definition of framework. If you want you can use reflector.

Mustafa Ekici
  • 7,263
  • 9
  • 55
  • 75
0

Yes, there is the official source code released by Microsoft since December 2018 and can be seen on Github. There is an alternative (buggy) implementation from Mono.

Maniero
  • 10,311
  • 6
  • 40
  • 85