
C#
cvjar
QQ:403883172
展开
-
C# 进制转换
十进制转x进制:Convert.ToString (10, x);x进制转10进制Convert.ToInt32 ("x", 16);原创 2015-04-09 21:30:34 · 313 阅读 · 0 评论 -
C# Server Socket
using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Sockets;using System.Text;using System.Threading;using LitJso原创 2015-04-09 12:45:34 · 700 阅读 · 0 评论 -
C# LitJson
解析JSONJsonData jd = JsonMapper.ToObject(xxx.toString());原创 2015-04-09 12:33:35 · 373 阅读 · 0 评论 -
C# Dictionary
Dictionary s;int i = s.Single(x => x.Value =="xxx").Key;原创 2015-04-07 20:53:01 · 318 阅读 · 0 评论 -
C# 正则校验
string pat = "{\"userid\":[^}.]*?}"; //校验段MatchCollection mc = new Regex (pat, RegexOptions.Multiline).Matches (xxx); //除去多行foreach (Match m in mc) { print(m.Value);}原创 2015-04-09 18:48:48 · 264 阅读 · 0 评论