上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 40 下一页
摘要: using System.Linq;ArrayList lst = BusinessFacade.BU_DailyDetailList(qp, out RecordCount); IList lstNew = lst.Cast().Where(q => q.DailyID == S_ID).ToList();IList mList = New List(new string[]{"aaa"}); List> kvpOriginalPriceAllLst = new List>(); //常规关键字 ... 阅读全文
posted @ 2013-03-21 14:59 xust 阅读(841) 评论(0) 推荐(0)
摘要: <%# DataBinder.Eval(Container.DataItem,"ContractID") %> 阅读全文
posted @ 2013-03-15 15:45 xust 阅读(118) 评论(0) 推荐(0)
摘要: switch (DataType) { case DataType.Int: int IntTempValue = 0; if (!int.TryParse(TempValue, out IntTempValue)) EventMessage.MessageBox(2, "输入数据格式验证失败", fieldText + ":必须为整数类型!", Icon_Type.Error, "... 阅读全文
posted @ 2013-03-11 09:25 xust 阅读(446) 评论(0) 推荐(0)
摘要: select * from ( select ROW_NUMBER() OVER(order by SUM(HavePayAmount) desc) AS rowNum, CustomerID,CustomerName,SUM(Amount) sumContractAmount, SUM(HavePayAmount) sumHavePayAmount from #tmpTable where (ContractDate >= '2012-04-01' and ContractDate ... 阅读全文
posted @ 2013-03-06 15:40 xust 阅读(339) 评论(0) 推荐(0)
摘要: ExpressionBuilder 类 .NET Framework 4 其他版本 此主题尚未评级 - 评价此主题 在分析页的过程中计算表达式。继承层次结构System.ObjectSystem.Web.Compilation.ExpressionBuilderSystem.Web.Compilation.AppSettingsExpressionBuilderSystem.Web.Compilation.ConnectionStringsExpressionBuilderSystem.Web.Compilation.ResourceExpressionBuilderSystem.Web.C. 阅读全文
posted @ 2013-03-06 11:08 xust 阅读(429) 评论(0) 推荐(0)
摘要: 方法一:<head runat="server"> <title></title> <script runat="server"> [DirectMethod] public void SetTimeStamp() { this.Label1.Text = DateTime.Now.ToLongTimeString(); this.Label1.Element.Highlight(); } </script></head><body> <form id=" 阅读全文
posted @ 2013-02-22 16:10 xust 阅读(505) 评论(0) 推荐(0)
摘要: MSDN中对DllImportAttribute的解释是这样的:可将该属性应用于方法。DllImportAttribute属性提供对从非托管DLL导出的函数进行调用所必需的信息。作为最低要求,必须提供包含入口点的DLL的名称。并给了一个示例:[DllImport("KERNEL32.DLL", EntryPoint="MoveFileW",SetLastError=true,CharSet=CharSet.Unicode, ExactSpelling=true,CallingConvention=CallingConvention.StdCall)]pu 阅读全文
posted @ 2013-02-20 10:23 xust 阅读(156) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading ; namespace 多线程 { class 线程元子性 { private static Person per = new Person() ; public static void Main() { for( i... 阅读全文
posted @ 2013-02-01 14:22 xust 阅读(202) 评论(0) 推荐(0)
摘要: SMP系统中,为了要增加更多的处理器,就不得不消耗更多资源在处理CPU抢占内存以及内存同步等两大问题,CPU抢占内存是由于当SMP架构中的某颗CPU在存取内存中的某段地址时,会锁定该段地址的数据,等到处理完才会释放给其它CPU存取,其它CPU若同时有存取该段数据的需求,就必须乖乖排队等待,当CPU数量越多时,类似的情况就会更严重。因此SMP CPU的设计就大幅增加高速缓存的容量,让大量的数据操作在CPU各自的高速缓存中完成,以避免数据锁定的问题发生。不过大容量的高速缓存导致另外一种情况发生,那就是资料同步的问题,若多颗CPU同时处理同一段数据,那么要从高速缓存中回存到主存储器时,就会成为相当大 阅读全文
posted @ 2013-01-31 12:02 xust 阅读(277) 评论(0) 推荐(0)
摘要: 如何:使用屏障来使并发操作保持同步 .NET Framework 4 其他版本 此主题尚未评级 - 评价此主题 下面的示例演示如何使用 Barrier 同步并发任务。示例以下程序旨在通过使用一种随机化算法将一个短语的单词打乱排列,从而计算两个线程需要多少迭代(或阶段)才能各自找出自己的解答。在每个线程排列好单词之后,关卡后期阶段操作将比较两个结果,查看完整句子是否以正确的单词顺序呈现。C#VB//#define TRACEusing System;using System.Collections.Generic;using System.Linq;using System.Text;usin. 阅读全文
posted @ 2013-01-30 16:45 xust 阅读(154) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 40 下一页