文章分类 -  C# 应用Code

摘要:JS: C#: 参考:http://www.cnblogs.com/artech/p/cors-4-asp-net-web-api-01.html 参考:http://www.cnblogs.com/artech/archive/2013/12/05/3460544.html 阅读全文
posted @ 2016-08-18 12:06 邹邹 阅读(224) 评论(0) 推荐(0)
摘要:test 阅读全文
posted @ 2015-01-20 14:00 邹邹 阅读(245) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using ServiceStack.Redis.Generic;using ServiceStack.Redis;namespace ... 阅读全文
posted @ 2014-11-20 18:04 邹邹 阅读(286) 评论(0) 推荐(0)
摘要:public static string CreatePayStateMachineXML() { XDocument root = new XDocument(new XElement("PayStateMachine")); ... 阅读全文
posted @ 2014-11-20 14:39 邹邹 阅读(146) 评论(0) 推荐(0)
摘要:public class Singleton where T : new() { private static object _locker = new object(); private static T _instance; public sta... 阅读全文
posted @ 2014-11-18 11:40 邹邹 阅读(193) 评论(0) 推荐(0)
摘要:1、使用FileStream读写文件文件头: using System;using System.Collections.Generic;using System.Text;using System.IO; 读文件核心代码: byte[] byData = new byte[100];char[] ... 阅读全文
posted @ 2014-11-17 08:55 邹邹 阅读(127) 评论(0) 推荐(0)
摘要:The code is like this:main(){ Car car = new Car(); var value = GetPropertyValue(car, "name"); } public static object GetPropertyV... 阅读全文
posted @ 2014-10-16 16:45 邹邹 阅读(6810) 评论(0) 推荐(0)
摘要:/// /// Files the content. /// /// Name of the file. /// private byte[] FileContent(string fileName) ... 阅读全文
posted @ 2014-09-26 16:28 邹邹 阅读(170) 评论(0) 推荐(0)