摘要:
[Serializable] public class VPoint { public int ID { get; set; } public int X { get; set; } public int Y { get; set; } public bool IsFind { get; set;... 阅读全文
摘要:
今天看别人写的源码发现一个特殊的DefaultValueAttribute。使用如下。原始代码:public class People { private string _Name = "小明"; public string Name ... 阅读全文
摘要:
代码如下:public class KeyBoardHelper { #region 键盘控制 /// /// 显示键盘 /// public static void ShowInputPanel() { ... 阅读全文
摘要:
1,注册账号。步骤自己在网上找吧。a56爆大奖在线娱乐用的是测试号。http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login用手机扫描一下会得到一个账号,只能用一天。2,配置接口信息。Url这个是重点啊,所有的处理都在这。a56爆大奖在线娱乐的url是http://xx... 阅读全文
摘要:
例一:正则:(? //已经去掉了双引号了匹配结果为http://avatar.csdn.net/8/3/2/1_xanxus46.jpg例二正则:(.)\\1(.)\\2用到的表达式\num匹配num,其中num是一个正整数。对所获取的匹配的引用。例如,“(.)\1”匹配两个连续的相同字符。解析:匹... 阅读全文
摘要:
http://www.bing.com/gallery/?src=livesino#http://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=2&mkt=zh-cn参数idx为开始的位置参数n为获取的个数参数mkt为地区 zh-cn为中国好... 阅读全文
摘要:
Int.ToString(format):格式字符串采用以下形式:Axx,其中 A 为格式说明符,指定格式化类型,xx 为精度说明符,控制格式化输出的有效位数或小数位数,具体如下:格式说明符说明示例输出 C货币2.5.ToString("C")¥2.50 D十进制数25.... 阅读全文
摘要:
public static string PercentEncode(string s) { var bytes = Encoding.UTF8.GetBytes(s); var sb = new StringBuilder(); foreach (var b in bytes) { if ((b ... 阅读全文
摘要:
http://www.wxzzz.com/ 王旭博客http://nonocast.cn/tag/wpf/ 一个牛人的博客园,涉及ios,C#,go等多方面http://blog.csdn.net/boonya/article/details/38704229 android UI框架http://... 阅读全文
摘要:
在上传文件的时候报错。错误:System.Net.ProtocolViolationException:必须先将ContentLength字节写入请求流,然后再调用[Begin]GetResponse。原因:传过去的长度和你写在头文件的ContentLength 不一致。解决办法:保证Content... 阅读全文