Exemplo n.º 1
0
                        public static Other1 Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj)
                        {
                            var instance = new Other1();

                            {
                                instance.Field = (global::Improbable.TestSchema.NestedTypeSameName.Other.NestedTypeSameName.Other1.NestedTypeSameName)obj.GetEnum(1);
                            }

                            return(instance);
                        }
Exemplo n.º 2
0
 private void button9_Click(object sender, EventArgs e)
 {
     //匿名方法
     Other1 del1 = delegate(int x){ return(x + 1); };
     //Lambda表达式
     Other1 del2 = (int x) => { return(x + 1); };
     Other1 del3 = (x) => { return(x + 1); };
     Other1 del4 = x => { return(x + 1); };
     Other1 del5 = x => x + 1;
 }
Exemplo n.º 3
0
        public frmMain()//主函数
        {
            InitializeComponent();
            //创建从窗体对象
            Other1 otj1 = new Other1();
            Other2 otj2 = new Other2();

            //委托连接方法
            act += otj1.Reciver;
            act += otj2.Reciver;
            //显示窗体
            otj1.Show();
            otj2.Show();
        }
 public Expenses()
 {
     costOfGoodsBought           = new Costofgoodsbought();
     cisPaymentsToSubcontractors = new Cispaymentstosubcontractors();
     staffCosts           = new Staffcosts();
     travelCosts          = new Travelcosts();
     premisesRunningCosts = new Premisesrunningcosts();
     maintenanceCosts     = new Maintenancecosts();
     adminCosts           = new Admincosts();
     advertisingCosts     = new Advertisingcosts();
     interest             = new Interest();
     financialCharges     = new Financialcharges();
     badDebt          = new Baddebt();
     professionalFees = new Professionalfees();
     depreciation     = new Depreciation();
     other            = new Other1();
 }
                        public static Other1 Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj)
                        {
                            var instance = new Other1();

                            return(instance);
                        }
 public static void Serialize(Other1 instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
 }
Exemplo n.º 7
0
 public static void Serialize(Other1 instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         obj.AddEnum(1, (uint)instance.Field);
     }
 }