
C# using的三种方式
using指令 引用命名空间,以减少输入。这也是我们最常用的地方。 如 using System.Text; using别名 http://cppkey.com/archives/2034 &nbRead More →
You are browsing the site archives for 十二月 2015.
using指令 引用命名空间,以减少输入。这也是我们最常用的地方。 如 using System.Text; using别名 http://cppkey.com/archives/2034 &nbRead More →
问题 在C# using的时候,我们可能经常有一系列长长的名字 比如我引入protobuf-net用于使用的时候,要使用它必须使用一个长长的
1 2 3 4 5 6 |
//使用protobuff消息结构 using global::ProtoBuf.IExtensible; //或者当参数的时候 private delegate void PacketProcessFuc(global::ProtoBuf.IExtensible packet); |
问题 最近几天不知道为什么总是老乱出来一个弹窗,安一些东西。 今天尽然出来一个aitaobao在桌面,真心烦啊。现在的广告真是无孔不入。 原因 原因的原因,就是因为: 你安装了一个WPS 没错,就Read More →
看见百度出来的一埣垃圾真蛋疼。 将文件夹A全部拷贝到文件夹B。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
//拷贝文件夹 public static void dirCopy(string SourcePath, string DestinationPath) { //拷贝所有文件夹 foreach (string dirPath in Directory.GetDirectories(SourcePath, "*", SearchOption.AllDirectories)) { Directory.CreateDirectory(dirPath.Replace(SourcePath, DestinationPath)); } //拷贝文件并且替换掉同名的文件 foreach (string newPath in Directory.GetFiles(SourcePath, "*.*", SearchOption.AllDirectories)) { File.Copy(newPath, newPath.Replace(SourcePath, DestinationPath), true); } } |
endRead More →
问题 启动mysql后,发现它创建越来越多的日志文件,本来这里是单数据库,不用其它复杂操作。 为了防止无用文件增加浪费磁盘,再加上本地有定时备份,所以不需要此日志文件。 ls 按时间排序可以看到,最新的刚不到半Read More →
同名标题 WordPress无法连接mysql 使用phpStudy搭建php环境无法连接mysql phpmysql环境无法连接mysql php_pdo连接错误 问题 在使用phpStudy部署完云服务器之Read More →
问题 博客搬家的时候,需要对主机上的mysql导入数据,在mysql已经建立了数据库并指定了用户的情况下,还是未能登录 access denied for user ‘root’@ip(Read More →
问题 因为买了新的阿里云服务器,之前的WordPress搬家过来,写文章测试的时候,链接总会跳转到之前的域名。 其它如果域名已经失效,想用IP访问的时候肯定也会有这个问题。 解决 直接修改数据库的siteurlRead More →
问题 经常需要修改my.cnf文件做一些配置,需要找它的位置,每个php环境或者mysql安装位置或者集成环境自动安装的位置都不确定。 方法 主要有以下方法 [crayon-5ae0a7e513b3c54607Read More →
副标题 [mysql][phpmyadmin][wordpress] unknown to the client [mysql_old_password] 问题 今天准备将博客搬家到阿里云,结果刚搬过去醒来兴致Read More →
Designed using Responsive Brix WordPress Theme. Powered by WordPress.