short shortNumber = 32767; Console.WriteLine($"Org short number: {shortNumber}"); shortNumber += 1; Console.WriteLine($"Plus 1 to short number:{shortNumber}");
顯示結果如下:
1 2
Org short number: 32767 Plus 1 to short number:-32768
dotnet new console -n Sender cd Sender/ dotnet add package RabbitMQ.Client cd .. dotnet new console -n Receiver cd Receiver/ dotnet add package RabbitMQ.Client