摘要: public class ListItem { /// <summary> /// Key /// </summary> public string Key { get; set; } /// <summary> /// Value /// </summary> public object Valu 阅读全文
posted @ 2020-05-17 15:45 天天代码码天天 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Singleton 类如下: public class Singleton<T> where T : class, new() { private static T _instance; private static readonly object syslock = new object(); p 阅读全文
posted @ 2020-05-17 15:26 天天代码码天天 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、下载地址:https://www.oracle.com/java/technologies/javase-downloads.html 2、双击运行,下一步、下一步…… 3、新建变量名:JAVA_HOME,值为:C:\Program Files\Java\jdk1.8.0_231 4、PATH变 阅读全文
posted @ 2020-05-17 14:56 天天代码码天天 阅读(4) 评论(0) 推荐(0) 编辑
摘要: class Program { //Fix求出的是函数f的不动点,它就是我们所需要的递归函数: static Func<T, TResult> Fix<T, TResult>(Func<Func<T, TResult>, Func<T, TResult>> f) { return x => f(Fi 阅读全文
posted @ 2013-07-26 14:57 天天代码码天天 阅读(7) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 把分钟数转化成几小时几分钟(100 -> 01:40) /// </summary> /// <param name="minutes">待转化的分钟数</param> /// <returns>几小时几分钟</returns> string ConvertToT 阅读全文
posted @ 2013-07-23 09:08 天天代码码天天 阅读(6) 评论(0) 推荐(0) 编辑
摘要: CREATE PROC [dbo].[sp_help2] @TableName VARCHAR(50) = NULL AS SET NOCOUNT ON SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SET XACT_ABORT ON DECLAR 阅读全文
posted @ 2013-07-01 20:59 天天代码码天天 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1. 创建空白解决方案 2. 创建服务契约项目Contracts: 3. 为Contracts项目添加System.ServiceModel程序集引用 4. 定义服务契约 5. 定义服务契约的实现(Services类库),并添加服务契约项目的引用。 6. 创建控制台程序(Hosting),实现服务的 阅读全文
posted @ 2012-12-15 13:26 天天代码码天天 阅读(2) 评论(0) 推荐(0) 编辑
摘要: public static class PredicateBuilder { public static Expression<Func<T, bool>> True<T>() { return f => true; } public static Expression<Func<T, bool>> 阅读全文
posted @ 2012-12-11 16:09 天天代码码天天 阅读(3) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.Xml; using System.Data.SqlClient; using System.Collections; using System.Configuration; namespace Projec 阅读全文
posted @ 2012-11-28 17:28 天天代码码天天 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #region 人民币大写 public static string CmycurD(decimal num) { string str1 = "零壹贰叁肆伍陆柒捌玖"; //0-9所对应的汉字 string str2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; //数字位所对应的汉字 string 阅读全文
posted @ 2012-11-28 17:26 天天代码码天天 阅读(10) 评论(0) 推荐(0) 编辑