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?

1

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.