摘要:
全排列 class Program { private static void Perm(int[] data, int k, ref int count) { int size = data.Length; if (k == size 1) { count++; Console.WriteLine 阅读全文
摘要:
class Program { private static void Fun(int x, int n, Stack stack, List outList,ref int count) { if (outList.Count == n) { count++; Console.WriteLine( 阅读全文
摘要:
transclude 的效果 代码: <!DOCTYPE html Graphics ng D3 Front end Startup angular.module('myApp', []).controller('myCtrl',function($scope){}) .directive('sid 阅读全文
摘要:
初识 directive 指令 1. ng app 初始化一个AngularJs应用程序(通过一个值(比如 ng app="myModule")连接到代码模块。) 2. ng init 初始化应用程序数据(一般不用) 3. ng model 把元素值绑定到应用程序(mvvm的双向绑定) 4. ng 阅读全文
摘要:
因为做网站的静态页缓存,所以做了这个测试 MVC项目 准备了4个Action,分两组,一组是读取本地磁盘的一个html页面文件,一组是延时2秒 public class TestController : Controller { public ActionResult Article(string 阅读全文
摘要:
博文 "Don't Block on Async Code" "What is the purpose of “return await” in C ?" "Any difference between “await Task.Run(); return;” and “return Task.Run 阅读全文
摘要:
预定义的过滤 ISoftDelete 软删除过滤用来在查询数据库时,自动过滤(从结果中抽取)已删除的实体。如果一个实体可以被软删除,它必须实现ISoftDelete接口,该接口只定义了一个IsDeleted属性,例如: public class Person : Entity, ISoftDelet 阅读全文
摘要:
operator 关键字 operator 关键字用来重载内置运算符,或提供类/结构声明中的用户定义转换。它可以定义不同类型之间采用何种转化方式和转化的结果。 operator用于定义类型转化时可采用2种方式,隐式转换(implicit)和显示转换(explicit) public class Op 阅读全文
摘要:
概述 Markdown的理念是能让文档更容易读、写和随 改。 它用简洁的语法代替排版,格式语法只涵盖纯文 本可以涵盖的范围。 不在 Markdown 涵盖范围之内的标签,都可以直接在文档里面用 HTML 撰写。不需要额外标注这是 HTML 或是Markdown;只要直接加标签就可以了。 This i 阅读全文