⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program.cs

📁 C#高级编程第6版随书源代码 值得下载
💻 CS
字号:
using System;
using WCFClientApp.NorthwindService;

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.ProductIdk__BackingField = 16;
         //line1.productId = 16;
         line1.UnitPricek__BackingField = 17.45F;
//         line1.unitPrice = 17.45F;
         line1.Quantityk__BackingField = 2;
//         line1.quantity = 2;
         OrderLine line2 = new OrderLine();
         line2.ProductIdk__BackingField = 67;
         line2.UnitPricek__BackingField = 14;
         line2.Quantityk__BackingField  = 1;
         //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 + -