摘要: 1、客户端 unity 发送post请求 IEnumerator Post() { string url = "http://localhost/tp/public/api/v1/test"; //header data Dictionary header = new Dictionary(); h 阅读全文
posted @ 2018-03-12 15:27 逆风飞起的猪 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: //Unity3D之Json序列化 using UnityEngine; using System.Collections; using System.Collections.Generic; using LitJson; using System.Text; public class Test : 阅读全文
posted @ 2018-03-12 15:56 逆风飞起的猪 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 练习搭建WCF发布到IIS,配置环境时遇到一些问题,特整理总结分享。 操作系统:Windows7 旗舰版 开发环境:VS2010 .NET Framework4.0 ASP.NET4.0, WCF.4.0 一、搭建IIS服务 1. 控制面板->程序和功能->打开或关闭Windows功能:Intern 阅读全文
posted @ 2018-03-12 15:28 逆风飞起的猪 阅读(233) 评论(0) 推荐(0) 编辑
摘要: C 避免过长的IF和Switch分支的方法 1.最蠢形态 //很丑有没有! //这个分支要是一两个还是可以接受的 class Program { static void Main(string[] args) { Command("播放"); Console.ReadKey(); } public 阅读全文
posted @ 2015-08-17 17:47 逆风飞起的猪 阅读(1780) 评论(0) 推荐(1) 编辑
摘要: //闲来无事,巩固同步异步方面的知识,以备后用,特整理如下: class Program { static void Main(string[] args) { //同步调用 会阻塞当前线程,一步一步进行调用 Console.WriteLine("============同步调用线程:" + Thr 阅读全文
posted @ 2015-08-16 19:48 逆风飞起的猪 阅读(777) 评论(2) 推荐(0) 编辑