摘要:
北四村应届大学毕业生租户:我们要住在哪儿?市中心,我们要留在哪儿?地球,北京。解说:年轻的梦想,从拥挤的出租屋出发,《新闻1+1》本周关注“北四村”难以安顿的青春!评论员白岩松:您好观众朋友,欢迎收看正在直播的《新闻1+1》。本周《新闻1+1》要用几期节目来向青春致敬,这种致敬的方式并不一定是鲜花或... 阅读全文
摘要:
我们知道DataTable是内存中的一个表,可以用DataColumn和DataRow来构造一个DataTable,并且用DataColumn的Expression属性来创建计算列。 (1)创建计算列,该列的值是其它列的计算值.如: DataSet1.Tables("myTable").Columns("Price").Expression = "UnitPrice * 0.086". (2)创建聚合列,聚合基于 DataTable 中的整个行集执行操作.如: DataSet1.Tables("myTable"). 阅读全文
摘要:
private string ConvertToCh(decimal vpdMoney,ref string vpsCnMoney) { string sCnDigit = "零壹贰叁肆伍陆柒捌玖"; //0-9所对应的汉字 string sCnUnit = "万仟佰拾亿仟佰拾万仟佰拾元角分"; //数字位所对应的汉字 string sTemp1 = "", sTemp2 = ""; int i,j; string sCn1 = "";//数字的汉语... 阅读全文
摘要:
C#查找指定文件夹下指定后缀名的所有文件,用递归的方法解决这类问题 代码一:用ArrayList转化为string[]保存指定后缀名文件 最后Foreach循环输出或绑定usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usin. 阅读全文
摘要:
编辑器加载中.../1.文件夹创建、移动、删除--------- //创建文件夹 Directory.CreateDirectory(Server.MapPath("a")); Directory.CreateDirectory(Server.MapPath("b")); Directory.CreateDirectory(Server.MapPath("c")); //移动b到a Directory.Move(Server.MapPath("b"), Server.MapPath("a\\b" 阅读全文
摘要:
一、哈希表(Hashtable)简述 在.NET Framework中,Hashtable是System.Collections命名空间提供的一个容器,用于处理和表现类似key/value的键值 对,其中key通常可用来快速查找,同时key是区分大小写;value用于存储对应于key的值。Hashtable中key/value键值对均为 object类型,所以Hashtable可以支持任何类型的key/value键值对。二、哈希表的简单操作在哈希表中添加一个key/value键值对:HashtableObject.Add(key,value); 在哈希表中去除某个key/value键值对:Ha 阅读全文
摘要:
方法一:string version =System.Reflection.Assembly.LoadFrom(strFilePath).GetName().Version.ToString();方法二:Version ApplicationVersion = newVersion(Application.ProductVersion);string version =ApplicationVersion.Major.ToString();//获取主版本号方法三:System.Diagnostics.FileVersionInfo info =System.Diagnostics.FileVe 阅读全文
摘要:
if(strSelectedItemName=="True"){this.timer1.Enabled=true;this.timer1.Start();return;}else{this.timer1.Stop();//停止计时}3种Timer的用法(转) 关于C#中timer类在C#里关于定时器类就有3个1.定义在System.Windows.Forms里2.定义在System.Threading.Timer类里"3.定义在System.Timers.Timer类里System.Windows.Forms.Timer是应用于WinForm中的,它是通过Wind 阅读全文