C# 程序的通用结构
2016-09-30 08:52
197 查看
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#基础 [02] C#程序的通用结构
- C# 编程指南(2):语言部分:程序的通用结构
- C# 程序的通用结构
- C# 程序的通用结构(C# 编程指南)
- 解析C#编程的通用结构和程序书写格式规范
- C# 程序的通用结构
- C# 程序的通用结构(C# 编程指南)
- C# 程序的通用结构
- c#实现一般程序结构的搭建
- c#入门学习(1) -- c#中的变量,运算符和程序结构
- C#.NET的N层结构程序开发思路(C# + Access带源代码)
- C# 程序的常规结构
- 第一章 ASP.net C#基本语法(B篇 程序结构、运算符、运算优先级)
- C#程序结构
- ASP.NET,C#.NET 通用权限系统组件源码使用说明,程序开发的尚方宝剑,程序架构标准参考,程序开发必备知识
- C#通用更新程序
- 第一章 ASP.net C#基本语法(B篇 程序结构、运算符、运算优先级)
- C# 学习笔记 -- 第五天 程序结构
- C#笔记(3)---基本语法[程序结构]
- C#.NET的N层结构程序开发思路(C# + Access带源代码)