C# 程序的通用结构
2008-09-08 23:17
232 查看
C# 程序的通用结构
C# 程序可由一个或多个文件组成。每个文件都可以包含零个或零个以上的命名空间。一个命名空间除了可包含其他命名空间外,还可包含类、结构、接口、枚举、委托等类型。以下是 C# 程序的主干,它包含所有这些元素。
C# 程序可由一个或多个文件组成。每个文件都可以包含零个或零个以上的命名空间。一个命名空间除了可包含其他命名空间外,还可包含类、结构、接口、枚举、委托等类型。以下是 C# 程序的主干,它包含所有这些元素。
C# 复制代码 |
// A skeleton of a C# program using System; namespace YourNamespace { class YourClass { } struct YourStruct { } interface IYourInterface { } delegate int YourDelegate(); enum YourEnum { } namespace YourNestedNamespace { struct YourStruct { } } class YourMainClass { static void Main(string[] args) { //Your program starts here... } } } |
相关文章推荐
- C# 程序的通用结构(C# 编程指南)
- C# 程序的通用结构
- C# 程序的通用结构
- C#基础 [02] C#程序的通用结构
- C# 程序的通用结构
- C# 编程指南(2):语言部分:程序的通用结构
- C# 程序的通用结构(C# 编程指南)
- 解析C#编程的通用结构和程序书写格式规范
- C#下的Windows服务通用壳程序(二)
- C# ASP.NET 通用权限管理系统组件源码中WCF例子程序客户端运行详细配置参考
- 有简易通用权限管理后台的快速C# ASP.NET开发的例子应用程序卖给了曾长期开发JAVA银行程序的大哥
- C#通用权限管理-程序安全检查,这些你一定要考虑到位
- [C#] cmdarg_ui:“简单参数命令行程序”的通用图形界面
- C#中的程序结构
- 【C#】程序结构
- C# ASP.NET 通用权限管理系统组件源码中WCF例子程序客户端运行详细配置参考
- C# 学习笔记 -- 第五天 程序结构
- c#的简单程序结构
- 有简易通用权限管理后台的快速C# ASP.NET开发的例子应用程序卖给了曾长期开发JAVA银行程序的大哥