编译时经常有的需求是有些.c或者.h文件需要在编译时由某个接口定义文件生成。同时还可能有下面的需求:
* 同一个接口定义文件会用于产生多个源文件。
* 生成的源文件可能会被其它的Project使用。
举例来说,现在需要从接口定义文件xxx.xml通过可执行文件generator生成源文件xxx_A.h,xxx_B.h和xxx_C.c。
generator A xxx_A.h
gen...
分类:
移动开发 时间:
2015-05-17 18:46:08
阅读次数:
203
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
流用于对IO处理 在System.IO名称空间中有以下类 BinaryReader/Writer TextReader/Writer Stream 其中类Stream为抽象类。由此有三个派生类: MemoryStream:对内存进行读取与写入 BufferedStream:对缓冲器进行读取/写入 F...
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace S...
WebService: using System.Web.Script.Services; [GenerateScriptType(typeof(people))] [WebMethod] public List GetPeopleList() { Lis...
分类:
Web程序 时间:
2015-05-17 15:15:00
阅读次数:
206
下例演示了C#1.0到3.0委托的创建过程:public partial class delegate_Default2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { ...
分类:
其他好文 时间:
2015-05-17 15:13:52
阅读次数:
141
运行效果:项目结构图:DownLoad.cs文件代码: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Dra...
分类:
其他好文 时间:
2015-05-17 15:13:35
阅读次数:
234
对象相等比较机制对于引用类型的变量和值类型的变量来说是不同的,下面分别介绍引用类型和值类型的相等比较.首先来看System.Object的部分定义: public class Object { // 摘要: // 确定指定的 System.Object...
工程结构:注意三个项目都需要引用System.ServiceModel以及System.Runtime.Serialization。CommonLib工程:1 [ServiceContract]//, ServiceKnownType(typeof(User))]2 public i...
分类:
其他好文 时间:
2015-05-17 12:05:44
阅读次数:
181
有时system.map文件可以帮助我们理解内核编译,它记录了所有代码的运行地址。对于系统的oop消息、或者通过gdb的调试消息,都需要根据该对照表,将内核熟悉的函数地址转化为用户熟悉的函数名称,便于用户进行故障定位、运行监控。
system.map内容格式为:线性地址 类型 符号
符号类型.
小写字母表示局部; 大写字母表示全局(外部).
A
The symbol's ...
分类:
其他好文 时间:
2015-05-17 10:48:46
阅读次数:
138