Form1はFormから継承します。 Formのコードを見たいのですが、ファイルが見つかりません。それはどこにある ?Formクラスはどこですか?
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
Form1はFormから継承します。 Formのコードを見たいのですが、ファイルが見つかりません。それはどこにある ?Formクラスはどこですか?
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
フォームを選択し、表示されますそのメタデータの後にF12
をクリックすると上にあなたはそれが取られていますどのDLLから見ることができます:ここでSystem.Windows.Forms.Form
クラスへの直接リンクはあり
#region Assembly System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Windows.Forms.dll
#endregion
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Runtime.InteropServices;
namespace System.Windows.Forms
{
...
}
マイクロソフトが提供する.NET Frameworkリファレンスソースサイトのコードを参照してください。
https://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/Form.cs
これはSystem.Windows.Formsアセンブリ内にあります...右クリックして定義に移動し、そのメタデータを確認します。 –
Formクラスはフレームワークの一部です。そのコードを見るのに最適な場所は[参照元](https://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/Form.cs,8da76aa8c28acff7)です。 –