博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
测试Windows Live Writer插件
阅读量:4546 次
发布时间:2019-06-08

本文共 1313 字,大约阅读时间需要 4 分钟。

 

1、WindowsLiveWriter.CNBlogs.CodeHighlighter

///         /// 遍历元素
///         /// 
/// /// ///
public static IEnumerable
ForEach
(this IEnumerable
source, Action
action) { if (source == null) { throw new ArgumentNullException("source"); } if (action == null) { throw new ArgumentNullException("action"); } foreach (var item in source) { action(item); yield return item; } }

2、Windows Live Writer Source Code plugin for SyntaxHighlighter

/// 		/// 将集合分段		/// 指定每段的长度range		/// 		/// 
/// /// ///
public static IEnumerable
> Subparagraph
(this IEnumerable
source, int rangelength) { if (rangelength < 1) { throw new Exception("rangelength参数应大于等于1"); } if (source == null) { throw new ArgumentNullException("source"); } var temp = source; while (!temp.IsEmpty()) { yield return temp.Take(rangelength); temp = temp.Skip(rangelength); } }

转载于:https://www.cnblogs.com/Mr--Zhang/p/5647598.html

你可能感兴趣的文章
MySQL 删除数据库
查看>>
JavaScript 字符串(String) 对象
查看>>
How to use VisualSVN Server and TortoiseSVN to host your codes and control your codes' version
查看>>
微信小程序picker组件 - 省市二级联动
查看>>
Dynamics CRM 给视图配置安全角色
查看>>
Eclipse修改已存在的SVN地址
查看>>
C++ ACM基础
查看>>
(转)使用 python Matplotlib 库绘图
查看>>
进程/线程切换原则
查看>>
正则表达式语法
查看>>
20165301 2017-2018-2 《Java程序设计》第四周学习总结
查看>>
Vue的简单入门
查看>>
使用最快的方法计算2的16次方是多少?
查看>>
urllib 中的异常处理
查看>>
【SQL Server高可用性】高可用性概述
查看>>
通过SQL Server的扩展事件来跟踪SQL语句在运行时,时间都消耗到哪儿了?
查看>>
SQL优化:重新编译存储过程和表
查看>>
PCB“有铅”工艺将何去何从?
查看>>
Solr环境搭建
查看>>
IE兼容性的一些。。
查看>>