📄 program.cs
字号:
using System;
using System.ServiceModel;
using WCFClientApp.OrderService;
namespace WCFClientApp
{
class Program
{
static void Main()
{
Order order = new Order();
order.customerId = "PICCO";
order.orderDate = DateTime.Today;
order.shipAddress = "Georg Pipps";
order.shipCity = "Salzburg";
order.shipCountry = "Austria";
OrderLine line1 = new OrderLine();
line1.productId = 16;
line1.unitPrice = 17.45F;
line1.quantity = 2;
OrderLine line2 = new OrderLine();
line2.productId = 67;
line2.unitPrice = 14;
line2.quantity = 1;
OrderLine[] orderLines = { line1, line2 };
order.orderLines = orderLines;
OrderControlClient occ = new OrderControlClient();
occ.NewOrder(order);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -