I created a WindowsForm class in C++/CLI with one button and onClick event. I looked into the source code and saw this:
public ref class MyForm : public System::Windows::Forms::Form
{
public:
MyForm(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~MyForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ button1;
...
private: System::Void onClickButton1(System::Object^ sender, System::EventArgs^ e) {
}
}
I would like to ask: what is the meaning of the ^
operator when declaring the button (Button^ button1;
) in the class?