private void GetInput()
{
SerialPort SP = new SerialPort();
SP.PortName = "COM3";
SP.DataReceived += new SerialDataReceivedEventHandler(SP_DataReceived);
SP.Open();
}
private void SP_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
SerialPort serialPort = (SerialPort)sender;
string line = serialPort.ReadLine();
StartReading();
}
private void StartReading()
{
}
What is the use of default keyword in C#? Is it introduced in C# 3.0 ?