摘要: using System; using System.Collections.Generic; using System.Globalization; using System.Windows.Forms; namespace Dxq.Foundation.Forms { /// /// DataGridView助手. /// public clas... 阅读全文
posted @ 2019-03-14 09:53 Kane.Ding 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #region 单件模式 private static readonly Lazy<Class1> Instance = new Lazy<Class1>(() => new Class1()); private Class1() { //TODO: 在这里填写需要初始化的代码 } public s 阅读全文
posted @ 2019-03-03 09:34 Kane.Ding 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 0x01 综述 DebuggerDisplayAttribute 如名称所示 是在Debug阶段使用的。 确定类或字段在调试器变量窗口中的显示方式 MSDN地址:https://msdn.microsoft.com/zh-cn/library/system.diagnostics.debuggerd 阅读全文
posted @ 2018-02-08 10:53 Kane.Ding 阅读(231) 评论(0) 推荐(0) 编辑
摘要: /// /// 依赖属性 TODO:添加注释 /// public static readonly DependencyProperty Property = DependencyProperty.Register("", typeof(), typeof(),null); /// /// 依赖属性 TODO:添加注释 /// public { get{ ... 阅读全文
posted @ 2017-12-27 10:25 Kane.Ding 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Description 输入两个整数A和B,输出他们的和 输入描述 Input Description 输入为一行,包含两个整数A,B。数据保证A与B都在0 ~ 100的范围内 输出描述 Output Description 输入A与B的和,数据保证A与B的和在0 ~ 100的范围内 样例 阅读全文
posted @ 2017-11-06 14:31 Kane.Ding 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-10-31 15:49 Kane.Ding 阅读(4232) 评论(0) 推荐(1) 编辑
摘要: 题目 1 声明两个变量:int n1 = 10,n2= 20,要求将两个变量叫唤,最后输出n1为20,n2为10. (扩展*: 不使用第三个变量如何交换) 解决方案 基本方法 private static void BasicMethod() { int n1 = 10; ... 阅读全文
posted @ 2014-06-10 11:24 Kane.Ding 阅读(166) 评论(0) 推荐(0) 编辑