摘要: using System; namespace .Model { public class { public () { ... 阅读全文
posted @ 2017-10-21 14:58 大漠孤烟-1234 阅读(1495) 评论(0) 推荐(0)
摘要: Quartz.NET Quick Start Guide Welcome to the Quick Start Guide for Quartz.NET. As you read this guide, expect to see details of: Downloading Quartz.NET Installing Quartz.NET Configuring Quartz to yo... 阅读全文
posted @ 2017-10-13 11:57 大漠孤烟-1234 阅读(634) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Windows.Forms; using Test; namespace Test { public class FtpH... 阅读全文
posted @ 2017-09-24 14:10 大漠孤烟-1234 阅读(340) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text; namespace Common{ public class crc32test { public class FileToCRC32 { ... 阅读全文
posted @ 2017-09-18 21:03 大漠孤烟-1234 阅读(870) 评论(0) 推荐(0)
摘要: 记录下这个地址: https://technet.microsoft.com/zh-cn/library/bb510741(v=sql.105).aspx 阅读全文
posted @ 2017-08-26 13:00 大漠孤烟-1234 阅读(210) 评论(0) 推荐(0)
摘要: 配置文件 为fileName.ini 的文件 第一行必须为空,不然读不出值[section1] key=value key2=value ......... [section2] key=value key2=value ......... 代码如下: using System; using System.Runtime.InteropServices; using System.Te... 阅读全文
posted @ 2017-08-09 20:00 大漠孤烟-1234 阅读(4818) 评论(0) 推荐(0)
摘要: 第一步:新建一个控制台项目,作为关闭当前应用程序的调用程序。 using System; using System.Configuration; using System.Diagnostics; namespace RestartApp { class Program { private static string appName = Configuration... 阅读全文
posted @ 2017-07-27 02:03 大漠孤烟-1234 阅读(1971) 评论(0) 推荐(0)
摘要: using System; using System.Collections; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace Test { public abstract class DbHelper { //数据库连接字符串(web.co... 阅读全文
posted @ 2017-07-15 11:04 大漠孤烟-1234 阅读(1638) 评论(0) 推荐(0)
摘要: 1、首先先在工程里添加system.configuration.dll程序集的引用 2、写代码读取配置参数 方法一: string connStr= System.Configuration.ConfigurationManager.ConnectionStrings["strCon"].ToString(); ... 阅读全文
posted @ 2017-07-14 09:53 大漠孤烟-1234 阅读(22859) 评论(0) 推荐(1)
摘要: 通过分部类型可以定义要拆分到多个文件中的类、结构或接口。 如下: 在 File1.cs 中: namespace PC { partial class A { int num = 0; void MethodA() { } partial void MethodC(); } } 在 File2.cs 中,声明: names... 阅读全文
posted @ 2017-06-23 11:41 大漠孤烟-1234 阅读(4981) 评论(0) 推荐(0)