String --> InputStreamByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes()); InputStream --> StringString inputStream2String(InputStr ...
分类:
编程语言 时间:
2016-11-25 20:52:34
阅读次数:
185
重载应该叫overload,重写叫override;重载某个方法是在同一个类中发生的!重写是在子类中重写父类中的方法。 1.override: 父类:public virtual string ToString(){return "a";} 子类:public override string ToS ...
参考:(转)非常完善的Log4net详细说明 log4net 按天与按小时记日志的配置 Log4net 中输出日志到文件,文件名根据日期生成 log4net按日志级别(debug,info,warn,error,fatal)生成日志目录,同时每小时生成一个日志文件 配置文件: ...
分类:
Web程序 时间:
2016-11-25 12:14:24
阅读次数:
362
var retList = from d in mbExList.Cast<MaterialBaseEx>().ToList() join c in umcList.Cast<ClassifyBaseEx>().ToList() on d.ClsCode equals c.ClsCode join ...
分类:
其他好文 时间:
2016-11-25 12:10:41
阅读次数:
165
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>{dede:global.cfg_webname/}</title><meta name="description" content="{dede ...
分类:
其他好文 时间:
2016-11-25 11:38:51
阅读次数:
200
1、类图 2、创建项目 ………………………… 3、 VisualComponent:抽象界面构件类,充当抽象构件类 为了突出与模式相关的核心代码,咋基本实例中对空间代码进行了简化。 namespace DecoratorSample { /// <summary> /// 抽象构件类 /// </s ...
分类:
其他好文 时间:
2016-11-24 16:04:26
阅读次数:
169
今天的课程,老师主要介绍了字符串函数的相关知识。一、对字符串函数进行分类1.增加:concat2.删减:无3.更改:toUpperCase、toLowerCase4.查询:charAt、indexOf、lastIndexOf、charCodeAt、fromCharCode、length、substr、slice、substring、toString二、对数组函数进行分类1..
分类:
Web程序 时间:
2016-11-24 12:21:14
阅读次数:
162