- C# program can consist of one or more files (cs)
- Each file can contain zero or more namespaces
- Each namespace can contain types such as classes, structs, interfaces, enumerations, delegates, other namespaces
/*****************************************/
// 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...
}
}
}
/*****************************************/
No comments:
Post a Comment