Where is the source code for .Net Framework elements?

What I love about Delphi is that code is available for all controls and components. Its all in what is called the VCL (Visual Component Library) This has proven to be very useful when developing custom controls and components. AFter all, every control and component in Delphi was written in Delphi, so it makes sense to include this code in Delphi so that we can look into it and even debug it.

So I'm wondering if this is the case with C #? I suspect the controls like the TextBox are written in C #, so can I have a look at this code like in Delphi?

+3


source to share


2 answers


The vast majority of sources in the .NET Framework (including controls) can be found at:

http://referencesource.microsoft.com/



Specifically, the class TextBox

for WinForms can be found here: http://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/TextBox.cs,577a143ad3bbfb97

You can download the source code from referencesource.microsoft.com/download.html

+11


source


It depends on the library, just like in the VCL world. For example, you can get DevExpress components with source code in C #.



For built-in built in .NET framework, I don't know if the source code is available somewhere.

-1


source







All Articles